mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Fix release build again (#1400)
* Fix build again * Recommend (r)age over minisign password * Dry-run the entire release process * Reorg a bit so dry-run works * Fix secret name * Add check on age key * Pass secrets down * Use a cross-platform "date" * Delete signing key artifact to be extra safe * Last little bits
This commit is contained in:
parent
3f29e13e42
commit
5d4333d5c8
8 changed files with 189 additions and 140 deletions
13
.github/scripts/ephemeral-gen.sh
vendored
13
.github/scripts/ephemeral-gen.sh
vendored
|
@ -2,21 +2,12 @@
|
|||
|
||||
set -euxo pipefail
|
||||
|
||||
cargo binstall -y rsign2
|
||||
cargo binstall -y rsign2 rage
|
||||
rsign generate -f -W -p minisign.pub -s minisign.key
|
||||
|
||||
cat >> crates/bin/Cargo.toml <<EOF
|
||||
[package.metadata.binstall.signing]
|
||||
algorithm = "minisign"
|
||||
pubkey = "$(tail -n1 minisign.pub)"
|
||||
EOF
|
||||
|
||||
echo "public=$(tail -n1 minisign.pub)" >> "$GITHUB_OUTPUT"
|
||||
cp minisign.pub crates/bin/minisign.pub
|
||||
|
||||
set +x
|
||||
echo "::add-mask::$(tail -n1 minisign.key)"
|
||||
echo "private=$(tail -n1 minisign.key)" >> "$GITHUB_OUTPUT"
|
||||
set -x
|
||||
|
||||
rage --encrypt --recipient "$AGE_KEY_PUBLIC" --output minisign.key.age minisign.key
|
||||
rm minisign.key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue