Skip to content

Commit

Permalink
build: Sign aggregate release artifact from Github.
Browse files Browse the repository at this point in the history
  • Loading branch information
s373nZ committed Nov 11, 2024
1 parent 9c81d70 commit fdcd543
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,42 @@ jobs:
name: c-lightning-${{ env.version }}
pattern: bin-*
delete-merged: true

release:
name: Sign release
needs:
- artifact
env:
version: ${{ needs.check.outputs.version }}
runs-on: ubuntu-24.04
steps:
- name: Git checkout
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Download artifact
uses: actions/download-artifact@v4
with:
name: c-lightning-${{ env.version }}
path: release/

- name: Import GPG keys
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Sign release
run: |
sudo apt-get install -y lowdown
./configure
# TODO: configure GPG key
tools/build-release.sh --without-zip sign
- name: Upload signed artifact
uses: actions/upload-artifact
with:
name: c-lightning-${{ env.version }}
overwrite: true
path: release/

0 comments on commit fdcd543

Please sign in to comment.