Skip to content

release test

release test #5

Workflow file for this run

name: release test
on: workflow_dispatch
jobs:
release-gpg-test:
runs-on: ubuntu-latest
environment: Deploy
steps:
- name: Import GPG
id: import_gpg
# You may pin to the exact commit or the version.
# uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef
uses: crazy-max/ghaction-import-gpg@v6.0.0
with:
gpg_private_key: ${{ secrets.GPG_RELEASE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Create test file
run: echo "Hello at `date`" > /tmp/test.txt
- name: GPG sign file
run: gpg -u ${{ vars.GPG_RELEASE_KEY_ID }} --armor --output /tmp/test.txt.asc --detach-sign /tmp/test.txt
- name: Store signature as artifact
uses: actions/upload-artifact@v3
with:
name: signed
path: |
/tmp/test.txt
/tmp/test.txt.asc