Sign release assets #11
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
name: Sign release assets | |
on: | |
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.TEST_GPG_KEY }}" | base64 --decode | gpg --batch --import | |
- name: Sign assets | |
uses: Cawllec/release-signer@add-packages | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
full_repository: ${{ github.repository }} | |
release_tag: ${{ github.event.inputs.tag }} | |
key_id: ${{ secrets.TEST_GPG_KEY_ID }} | |
key_passphrase: ${{ secrets.TEST_GPG_PASSPHRASE }} |