diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48ae544..c99f206 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -39,11 +39,13 @@ jobs: - run: gpg --output ${{inputs.bin || inputs.crate}}.sig --detach-sig ${{steps.which.outputs.which}} - run: gpg --output signing-key.gpg --dearmor signing-key.asc - run: gpg --no-default-keyring --keyring ./signing-key.gpg --verify ${{inputs.bin || inputs.crate}}.sig ${{steps.which.outputs.which}} - - run: git push origin :refs/tags/${{inputs.crate}} || true + - run: git tag -d ${{inputs.crate}} || true + - run: git tag ${{inputs.crate}} + - run: git push origin tag ${{inputs.crate}} --force - uses: softprops/action-gh-release@v1 with: tag_name: ${{inputs.crate}} - target_commitish: ${{github.sha}} + target_commitish: ${{github.ref}} files: | ${{steps.which.outputs.which}} ${{inputs.bin || inputs.crate}}.sig