diff options
author | Manuel RĂ¼ger <manuel@rueg.eu> | 2021-08-19 21:29:33 +0200 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2021-08-28 20:53:09 +0900 |
commit | f53acb736b0b14d682da50a4cea6a0889b1a45b9 (patch) | |
tree | fdf71c42aab7c6a01051b752e642a8288f1b9009 | |
parent | d6e7a6676321fa1199c6a30df5658f6c9818d55e (diff) |
.github/release: Use goreleaser action
https://github.com/goreleaser/goreleaser-action#workflow
This simplifies the workflow, allows to define the golang version it is
built with
-rw-r--r-- | .github/workflows/release.yml | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b93aee40..018110b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,20 +6,25 @@ on: - v[0-9]+.* jobs: - build: - runs-on: ubuntu-16.04 - + goreleaser: + runs-on: ubuntu-latest steps: - - name: checking out + - name: Checkout uses: actions/checkout@v2 with: fetch-depth: 0 - - name: releasing + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.16 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - wget https://github.com/goreleaser/goreleaser/releases/download/v0.108.0/goreleaser_amd64.deb - sudo dpkg -i goreleaser_amd64.deb - rm goreleaser_amd64.deb - cd /home/runner/work/gobgp/gobgp && goreleaser release |