Skip to content

Commit

Permalink
feat: fix CI to automatically trigger release after push (#10)
Browse files Browse the repository at this point in the history
* fix: trigger goreleaser on all pushes and PRs

* fix: release after generating the version number
  • Loading branch information
liewstar authored Dec 28, 2024
1 parent e58a3a6 commit 66c3740
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 32 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:

semantic-release:
needs: test
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -37,3 +40,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx [email protected]

- name: Set up Go
uses: actions/setup-go@v5

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32 changes: 0 additions & 32 deletions .github/workflows/release.yml

This file was deleted.

0 comments on commit 66c3740

Please sign in to comment.