File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -100,3 +100,52 @@ jobs:
100100 name : c-lightning-${{ env.version }}
101101 pattern : bin-*
102102 delete-merged : true
103+
104+ release :
105+ name : Sign release
106+ needs :
107+ - check
108+ - artifact
109+ env :
110+ version : ${{ needs.check.outputs.version }}
111+ runs-on : ubuntu-24.04
112+ steps :
113+ - name : Git checkout
114+ uses : actions/checkout@v4
115+ with :
116+ fetch-tags : true
117+
118+ - name : Download artifact
119+ uses : actions/download-artifact@v4
120+ with :
121+ name : c-lightning-${{ env.version }}
122+ path : release/
123+
124+ - name : Import GPG keys
125+ id : gpg
126+ uses : crazy-max/ghaction-import-gpg@v6
127+ with :
128+ gpg_private_key : ${{ secrets.GPG_PRIVATE_KEY }}
129+ passphrase : ${{ secrets.GPG_PASSPHRASE }}
130+ trust_level : 5
131+
132+ - name : Set default GPG key
133+ run : |
134+ gpg -K
135+ gpg --list-secret-keys
136+ echo "default-key ${{ steps.gpg.outputs.keyid }}" >> ~/.gnupg/gpg.conf
137+ cat ~/.gnupg/gpg.conf
138+
139+ - name : Sign release
140+ run : |
141+ sudo apt-get install -y lowdown
142+ ./configure
143+ # TODO: configure GPG key
144+ tools/build-release.sh --without-zip sign
145+
146+ - name : Upload signed artifact
147+ uses : actions/upload-artifact@v4
148+ with :
149+ name : c-lightning-${{ env.version }}
150+ overwrite : true
151+ path : release/
You can’t perform that action at this time.
0 commit comments