Skip to content

Commit

Permalink
Merge pull request #2265 from bugsnag/add-signing-workflow
Browse files Browse the repository at this point in the history
Add signing workflow for releases
  • Loading branch information
gingerbenw authored Nov 28, 2024
2 parents 342fd57 + a236e06 commit d0820e1
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/signing.yml
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 }}

0 comments on commit d0820e1

Please sign in to comment.