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:
parent
3681aa28dd
commit
4498cd03b1
1 changed files with 4 additions and 1 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -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}}
|
||||||
|
|
Loading…
Reference in a new issue