-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2265 from bugsnag/add-signing-workflow
Add signing workflow for releases
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Sign release assets | ||
|
||
on: | ||
release: | ||
types: [released] | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: 'Tag to sign' | ||
required: true | ||
type: string | ||
jobs: | ||
sign-assets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install gpg | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gnupg | ||
- name: Import GPG key | ||
run: | | ||
echo "${{ secrets.PLATFORMS_GPG_KEY_BASE64 }}" | base64 --decode | gpg --batch --import | ||
- name: Sign assets | ||
uses: bugsnag/platforms-release-signer@main | ||
with: | ||
github_token: ${{ secrets.PLATFORMS_SIGNING_GITHUB_TOKEN }} | ||
full_repository: ${{ github.repository }} | ||
release_tag: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.event.release.tag_name }} | ||
key_id: ${{ secrets.PLATFORMS_GPG_KEY_ID }} | ||
key_passphrase: ${{ secrets.PLATFORMS_GPG_KEY_PASSPHRASE }} |