3
0
Fork 0
mirror of https://github.com/dtolnay/install.git synced 2024-11-23 00:39:30 +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: bin:
required: false required: false
type: string type: string
secrets:
private_key:
required: true
jobs: jobs:
build: build:
@ -22,7 +25,7 @@ jobs:
run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})" run: echo "::set-output name=which::$(which ${{inputs.bin || inputs.crate}})"
- run: echo "$PRIVATE_KEY" | gpg --import - run: echo "$PRIVATE_KEY" | gpg --import
env: 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 ${{inputs.bin || inputs.crate}}.sig --detach-sig ${{steps.which.outputs.which}}
- run: gpg --output signing-key.gpg --dearmor signing-key.asc - 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: gpg --no-default-keyring --keyring ./signing-key.gpg --verify ${{inputs.bin || inputs.crate}}.sig ${{steps.which.outputs.which}}