From a637ffd10b78b6e67bdfff58b39ae08856213acf Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 29 Aug 2019 10:54:37 +0200 Subject: [PATCH 1/2] add nightly workflow --- .github/workflows/nightly.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/nightly.yaml diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml new file mode 100644 index 00000000000..16a6eb8f9ae --- /dev/null +++ b/.github/workflows/nightly.yaml @@ -0,0 +1,31 @@ +name: nightly + +on: + schedule: + # run every day at 1AM + - cron: '0 1 * * *' + +jobs: + runs-on: ubuntu-latest + + container: + image: arduino/arduino-cli:builder-0.1 + volumes: + # cache go dependencies across pipeline's steps + - $PWD/go:/go + + steps: + - name: checkout + uses: actions/checkout@v1 + + - name: build + run: goreleaser --snapshot + + - name: upload + uses: docker://plugins/s3 + env: + PLUGIN_SOURCE: 'dist/*' + PLUGIN_TARGET: '/arduino-cli/nightly' + PLUGIN_BUCKET: 'arduino-downloads-prod-beagle' + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} From 9ebf4649aa6fc1cebf8f1ee3d69861f68fa56e8b Mon Sep 17 00:00:00 2001 From: Massimiliano Pippi Date: Thu, 29 Aug 2019 10:58:24 +0200 Subject: [PATCH 2/2] fix yaml --- .github/workflows/nightly.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 16a6eb8f9ae..8f031592cef 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -6,13 +6,14 @@ on: - cron: '0 1 * * *' jobs: - runs-on: ubuntu-latest + publish-nightly: + runs-on: ubuntu-latest - container: - image: arduino/arduino-cli:builder-0.1 - volumes: - # cache go dependencies across pipeline's steps - - $PWD/go:/go + container: + image: arduino/arduino-cli:builder-0.1 + volumes: + # cache go dependencies across pipeline's steps + - $PWD/go:/go steps: - name: checkout