From cc987604bf283a564c3eb2e32edf65495242a452 Mon Sep 17 00:00:00 2001 From: Michael Feher Date: Mon, 4 Nov 2024 17:20:30 -0500 Subject: [PATCH] fix: split prerelease tasks --- .github/workflows/CD.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index 5ded1df..24b1be6 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -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 }}