diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32a0ad4..3887e82 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -84,6 +84,13 @@ jobs: - name: Download artefacts uses: actions/download-artifact@v4 + - name: Clean up prerelease + if: ${{ ! startsWith(github.ref, 'refs/tags/') }} + run: | + gh release delete "Continuous prerelease" --cleanup-tag --yes --repo $GITHUB_REPOSITORY + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: ncipollo/release-action@v1 if: ${{ ! startsWith(github.ref, 'refs/tags/') }} with: