From c0ed6965432d8617bbb436ad949f8b309c744be2 Mon Sep 17 00:00:00 2001 From: Tyler Stiene Date: Tue, 14 Dec 2021 01:18:47 -0500 Subject: [PATCH] chore: build on main branch --- .github/workflows/build-release.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 7435b6c..f00826a 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -1,8 +1,11 @@ name: 'CI' on: push: - tags: - - 'v*' + branches: + - main + pull_request: + branches: + - main jobs: goreleaser: @@ -27,6 +30,15 @@ jobs: - name: go-license save run: go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./dist/LICENSES" + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: build --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 @@ -36,9 +48,9 @@ jobs: args: release --rm-dist env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # - - # name: Upload assets - # uses: actions/upload-artifact@v2 - # with: - # name: mdb - # path: dist/* \ No newline at end of file + - + name: Upload assets + uses: actions/upload-artifact@v2 + with: + name: mdb + path: dist/* \ No newline at end of file