From dd191651d5c4f2c27dd28ebdec5dca7eee8c6a6f Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 29 Jun 2022 07:26:13 -0700 Subject: [PATCH] Try pre-creating tag --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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