Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions .github/workflows/release-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,24 +131,40 @@ jobs:
env:
HAS_RELEASE_GPG_KEY: ${{ secrets.RELEASE_GPG_PRIVATE_KEY != '' }}
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ format('refs/tags/{0}', inputs.tag) }}

- name: Download build artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: release-*
merge-multiple: true
path: release-assets/

- name: Add installer to release assets
run: |
install -m 755 arcup/arcup release-assets/arcup
cd release-assets
if command -v sha256sum >/dev/null 2>&1; then
sha256sum arcup > arcup.sha256
else
shasum -a 256 arcup > arcup.sha256
fi
cat arcup.sha256

- name: Import GPG key
if: env.HAS_RELEASE_GPG_KEY == 'true'
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
with:
gpg_private_key: ${{ secrets.RELEASE_GPG_PRIVATE_KEY }}

- name: GPG sign archives
- name: GPG sign release assets
if: env.HAS_RELEASE_GPG_KEY == 'true'
run: |
for archive in release-assets/*.tar.gz; do
gpg --batch --yes --detach-sign --armor --output "${archive}.asc" "${archive}"
for artifact in release-assets/*.tar.gz release-assets/arcup; do
gpg --batch --yes --detach-sign --armor --output "${artifact}.asc" "${artifact}"
done

- name: Upload release assets
Expand Down
Loading