Skip to content

Commit

Permalink
Update releaser workflow to sign repo files.
Browse files Browse the repository at this point in the history
  • Loading branch information
icemarkom committed Nov 27, 2021
1 parent 4709808 commit de750da
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: goreleaser
name: releaser

on:
push:
Expand All @@ -9,7 +9,7 @@ permissions:
contents: write

jobs:
goreleaser:
releaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -27,4 +27,25 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GITHUB_TOKEN: ${{ secrets.TOKEN }}
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run apt-ftparchive
working-directory: dist
run: |
apt-ftparchive packages . > Packages && \
apt-ftparchive release . > Release
- name: Sign Release
working-directory: dist
run: |
gpg -abs -o Release.gpg Release &&
gpg --clearsign -o InRelease Release
- name: Upload Packages and Release manually
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_paths: '[ "./dist/Packages", "./dist/*Release*" ]'

0 comments on commit de750da

Please sign in to comment.