Skip to content

Make a workflow for signing our Debian packages #1

Make a workflow for signing our Debian packages

Make a workflow for signing our Debian packages #1

Workflow file for this run

name: 'Sign Packages'
on:
push:
branches:
- main
tags:
- v*
permissions:
contents: read
defaults:
run:
shell: bash
jobs:
Sign-Debian:
name: Sign Debian packages
runs-on: ubuntu-latest
environment: sign
steps:
- id: sysprep
name: Prep system for debsign work
run: |
sudo apt-get update
sudo apt-get install -y build-essential devscripts gnupg
continue-on-error: false
- id: set-key
name: Install signing key
env:
PRIVATE_KEY: ${{ secrets.KEY }}
run: |
gpg --import <<<"${PRIVATE_KEY}"
echo "Keys:"
gpg --list-secret-keys --keyid-format long
continue-on-error: false
- id: fetch
name: Fetch Debian artifact from this workflow
uses: actions/[email protected]
with:
name: package-deb
path: deb
continue-on-error: false
- id: sign
name: Run debsign
env:
DEBSIGN_KEYID: ${{ vars.DEBSIGN_KEYID }}
working-directory: deb
run: |

Check failure on line 53 in .github/workflows/sign.yml

View workflow run for this annotation

GitHub Actions / Sign Packages

Invalid workflow file

The workflow is not valid. .github/workflows/sign.yml (Line: 53, Col: 14): Unrecognized named-value: 'DEBSIGN_KEYID'. Located at position 1 within expression: DEBSIGN_KEYID .github/workflows/sign.yml (Line: 61, Col: 9): Unexpected value 'working-directory'
echo "Signing with key ${{DEBSIGN_KEYID}}"
debsign --debs-dir "${PWD}"
continue-on-error: false
- id: upload
name: Upload Signed Result as artifact
uses: actions/[email protected]
working-directory: deb
with:
name: signed-deb
if-no-files-found: error
continue-on-error: false