diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6485696..4ad0456 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -62,6 +62,12 @@ jobs: name: sqlwrite-mac path: . + - name: Delete existing release (if any) + run: | + gh release delete "${{ github.ref_name }}" -y || echo "No existing release to delete" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create GitHub Release id: create_release uses: actions/create-release@v1