3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-25 01:19:33 +01:00

Overwrite signing-key.gpg if already exists

This commit is contained in:
David Tolnay 2021-10-07 23:15:17 -04:00
parent 8031c88e17
commit c21a44f3db
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -22,7 +22,7 @@ runs:
run: curl --output ${{runner.temp}}/${{inputs.bin || inputs.crate}}.sig https://github.com/dtolnay/install/releases/download/${{inputs.crate}}/${{inputs.bin || inputs.crate}}.sig --location --silent --show-error run: curl --output ${{runner.temp}}/${{inputs.bin || inputs.crate}}.sig https://github.com/dtolnay/install/releases/download/${{inputs.crate}}/${{inputs.bin || inputs.crate}}.sig --location --silent --show-error
shell: bash shell: bash
- name: Retrieve public key of signing key - name: Retrieve public key of signing key
run: gpg --output ${{runner.temp}}/signing-key.gpg --dearmor ${{github.action_path}}/signing-key.asc run: gpg --output ${{runner.temp}}/signing-key.gpg --yes --dearmor ${{github.action_path}}/signing-key.asc
shell: bash shell: bash
- name: Verify gpg signature - name: Verify gpg signature
run: gpg --no-default-keyring --keyring ${{runner.temp}}/signing-key.gpg --verify ${{runner.temp}}/${{inputs.bin || inputs.crate}}.sig ${{steps.cargo.outputs.dir}}/${{inputs.bin || inputs.crate}} run: gpg --no-default-keyring --keyring ${{runner.temp}}/signing-key.gpg --verify ${{runner.temp}}/${{inputs.bin || inputs.crate}}.sig ${{steps.cargo.outputs.dir}}/${{inputs.bin || inputs.crate}}