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 }}