mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Sign snapshot build artifacts using GPG
In preparation for not having an "official" hosting location for the artifacts once my JFrog account is closed, so that the authenticity of files hosted elsewhere can be verified. The public key is hosted on the loot.github.io website.
This commit is contained in:
@@ -140,11 +140,19 @@ jobs:
|
||||
VERSION="${{ steps.get-libloot-version.outputs.version }}"
|
||||
echo "filename=libloot-${VERSION}-Linux.tar.xz" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Import GPG key
|
||||
run: echo -n "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import
|
||||
|
||||
- name: Sign archive
|
||||
run: gpg --output "build/package/${{ steps.build-archive.outputs.filename }}.sig" --detach-sig "build/package/${{ steps.build-archive.outputs.filename }}"
|
||||
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.build-archive.outputs.filename }}
|
||||
path: build/package/${{ steps.build-archive.outputs.filename }}
|
||||
path: |
|
||||
build/package/${{ steps.build-archive.outputs.filename }}
|
||||
build/package/${{ steps.build-archive.outputs.filename }}.sig
|
||||
if: github.event_name == 'push'
|
||||
|
||||
windows:
|
||||
@@ -227,9 +235,17 @@ jobs:
|
||||
|
||||
echo "filename=libloot-${VERSION}-${PLATFORM}.7z" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Import GPG key
|
||||
run: echo -n "${{ secrets.GPG_SIGNING_KEY }}" | gpg --import
|
||||
|
||||
- name: Sign archive
|
||||
run: gpg --output "build/package/${{ steps.build-archive.outputs.filename }}.sig" --detach-sig "build/package/${{ steps.build-archive.outputs.filename }}"
|
||||
|
||||
- name: Upload archive
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ steps.build-archive.outputs.filename }}
|
||||
path: build/package/${{ steps.build-archive.outputs.filename }}
|
||||
path: |
|
||||
build/package/${{ steps.build-archive.outputs.filename }}
|
||||
build/package/${{ steps.build-archive.outputs.filename }}.sig
|
||||
if: github.event_name == 'push'
|
||||
|
||||
Reference in New Issue
Block a user