From 31f5d257229909a1fc2fac05dc8b8fb4259f8564 Mon Sep 17 00:00:00 2001 From: Connor Edwards <38229097+cedws@users.noreply.github.com> Date: Thu, 13 Oct 2022 20:28:11 +0100 Subject: [PATCH] Update release action --- .github/workflows/release.yml | 50 ++++++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a986bc7..28e8834 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,29 +1,65 @@ name: Build -on: +on: push: tags: - '*' jobs: - build: + ubuntu-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3 with: go-version: 1.18 - - name: Build - run: make + - run: make build-linux + + - name: Publish GitHub release + uses: ncipollo/release-action@v1 + with: + artifacts: "bin/*" + allowUpdates: true + token: ${{ secrets.GITHUB_TOKEN }} + + macos-build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - run: make build-darwin + + - name: Publish GitHub release + uses: ncipollo/release-action@v1 + with: + artifacts: "bin/*" + allowUpdates: true + token: ${{ secrets.GITHUB_TOKEN }} + + windows-build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.18 + + - run: make build-windows - name: Publish GitHub release uses: ncipollo/release-action@v1 with: artifacts: "bin/*" allowUpdates: true - replacesArtifacts: true token: ${{ secrets.GITHUB_TOKEN }}