Skip to content

Commit

Permalink
Fix release workflow (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
raviqqe authored Jan 17, 2025
1 parent c92b827 commit ca2f1a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,26 @@ on:
push:
branches:
- main
pull_request:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: version
run: echo version=$(go run . --version) > ${{ github.output }}
- uses: raviqqe/goreleaser-action@v1
with:
version: ${{ steps.version.outputs.version }}
snapshot: ${{ github.ref != 'refs/heads/main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
needs: release
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit ca2f1a0

Please sign in to comment.