Skip to content

Commit

Permalink
fix: split prerelease tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
PhearZero committed Nov 4, 2024
1 parent 90358d8 commit cc98760
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,18 @@ jobs:
pattern: algorun*
path: ./bin
- uses: go-semantic-release/action@v1
name: pre-release
id: semver
if: ${{github.ref == 'ref/head/main'}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
- uses: go-semantic-release/action@v1
name: release
id: semver
if: ${{github.ref != 'ref/head/main'}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{github.ref == 'ref/head/main'}}
- name: Upload release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit cc98760

Please sign in to comment.