From 3484b38a0b97d0bae2b9251581c63f04a02b088c Mon Sep 17 00:00:00 2001 From: Albert Le Batteux Date: Fri, 7 Apr 2023 10:57:35 +0200 Subject: [PATCH] chore(ci): release binary when publish binary --- .github/workflows/release-binary.yml | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release-binary.yml diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml new file mode 100644 index 0000000..0053d5b --- /dev/null +++ b/.github/workflows/release-binary.yml @@ -0,0 +1,30 @@ +name: Release Binaries + +on: + release: + types: [ published ] + +jobs: + binary: + runs-on: ubuntu-latest + env: + working-directory: go/src/github.com/gnolang/supernova + + steps: + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + + - name: Checkout + uses: actions/checkout@v3 + with: + path: ${{ env.working-directory }} + fetch-depth: 0 + + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + with: + workdir: ${{ env.working-directory }} + version: 1.13.0 + args: release --rm-dist