Files
lnd/.github/workflows/verify-release.yaml
ziggie 5e3d608761 ci: add verify-release workflow
Add a workflow that triggers when a release is published. It runs
verify-install.sh inside the official Docker image to validate
signatures and binary hashes. If verification fails, the release
is automatically set back to draft.
2026-02-13 10:35:11 +01:00

37 lines
927 B
YAML

name: Verify release
on:
release:
types: [published]
workflow_dispatch:
inputs:
version:
description: 'Release version tag (e.g. v0.20.1-beta)'
required: true
permissions:
contents: write
jobs:
verify-release:
name: Verify release signatures and binaries
runs-on: ubuntu-latest
steps:
- name: Verify release
env:
VERSION: ${{ inputs.version || github.event.release.tag_name }}
run: |
docker run --rm --entrypoint="" \
lightninglabs/lnd:${VERSION} \
/verify-install.sh ${VERSION}
- name: Set release back to draft on failure
if: failure()
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ inputs.version || github.event.release.tag_name }}
run: |
gh release edit ${VERSION} \
--repo ${{ github.repository }} \
--draft