From b82d85049cc08bf7152f03fc3f66ff1ac3f73f81 Mon Sep 17 00:00:00 2001 From: till Date: Wed, 4 Nov 2020 14:56:50 +0100 Subject: [PATCH 1/2] Chore: delete release workflow --- .circleci/config.yml | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0a3baac..16c3630 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,17 +19,6 @@ workflows: - integration: requires: - build - release: - jobs: - - test - - release: - requires: - - test - filters: - branches: - ignore: /.*/ - tags: - only: /^v.*/ jobs: test: @@ -85,9 +74,3 @@ jobs: - run: name: Test "/metrics" with targets command: curl -i http://127.0.0.1:9211/metrics - release: - docker: - - *docker_goreleaser - steps: - - checkout - - run: goreleaser release --rm-dist From b0b22bd4d3c3979138cd9524334165940d3cb965 Mon Sep 17 00:00:00 2001 From: till Date: Wed, 4 Nov 2020 14:58:07 +0100 Subject: [PATCH 2/2] Update: release workflow --- .github/workflows/goreleaser.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..d9cf62c --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,29 @@ +name: goreleaser + +on: + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.14 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}