diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66844dc..c7b814d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,6 +88,14 @@ jobs: needs: publish runs-on: windows-latest steps: + - name: Drop the separate .sig files (latest.json already carries each signature) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --json assets -q '.assets[].name' | grep '\.sig$' | while read -r name; do + gh release delete-asset "$GITHUB_REF_NAME" "$name" --repo "$GITHUB_REPOSITORY" -y + done + - name: Publish the release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}