3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-22 16:29:32 +01:00

Declare required private key secret

This commit is contained in:
David Tolnay 2021-10-08 00:46:40 -04:00
parent 3681aa28dd
commit 4498cd03b1
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -9,6 +9,9 @@ on:
bin:
required: false
type: string
secrets:
private_key:
required: true
jobs:
build:
@ -22,7 +25,7 @@ jobs:
run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})"
- run: echo "$PRIVATE_KEY" | gpg --import
env:
PRIVATE_KEY: ${{secrets.PRIVATE_KEY}}
PRIVATE_KEY: ${{secrets.private_key}}
- 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}}