From 85a1d9cb1c1481a8e1126483ba754896f75b8310 Mon Sep 17 00:00:00 2001 From: Roberto Sora Date: Tue, 3 Sep 2019 11:26:30 +0200 Subject: [PATCH 1/3] add release workflow to github actions --- .github/workflows/release.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000000..8c1756c7bd6 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,28 @@ +name: release + +on: + push: + tags: + - [0-9].[0-9].[0-9]* + +jobs: + publish-release: + 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 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_DEFAULT_REGION: 'us-east-1' + run: goreleaser From e4b5aa9451b4ab3ac923cac587c643c1d2979ea9 Mon Sep 17 00:00:00 2001 From: Roberto Sora Date: Tue, 3 Sep 2019 11:29:58 +0200 Subject: [PATCH 2/3] fix string --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8c1756c7bd6..c96773b179b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,7 +3,7 @@ name: release on: push: tags: - - [0-9].[0-9].[0-9]* + - '[0-9].[0-9].[0-9]*' jobs: publish-release: From 2119f20fc740ebdf833d1cd1afe1ca8b69b9b716 Mon Sep 17 00:00:00 2001 From: Roberto Sora Date: Tue, 3 Sep 2019 11:51:49 +0200 Subject: [PATCH 3/3] remove .drone.yml file --- .drone.yml | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 91688dd2209..00000000000 --- a/.drone.yml +++ /dev/null @@ -1,40 +0,0 @@ ---- -kind: pipeline -name: release - -steps: -- name: fetch - # extra step needed to fetch tags after cloning - image: docker:git - commands: - - git fetch --tags - -- name: release - image: arduino/arduino-cli:builder-0.1 - environment: - GITHUB_TOKEN: - from_secret: github_token - AWS_ACCESS_KEY_ID: - from_secret: downloads_drone_io_aws_access_key_id - AWS_SECRET_ACCESS_KEY: - from_secret: downloads_drone_io_aws_secret_access_key - AWS_DEFAULT_REGION: 'us-east-1' - commands: - - goreleaser - -trigger: - event: - # releases are triggered by tags only - - tag - status: - # skip the release if the previous build failed - - success - ref: - exclude: - # exclude the tags used to build Docker images for drone - - refs/tags/builder-* - - refs/tags/drone-* - - refs/tags/nightly - -depends_on: - - test