Debian Release #10031
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: Debian Release | |
on: | |
workflow_run: | |
workflows: ["Debian Build"] | |
types: | |
- completed | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@master | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
- name: List keys | |
run: gpg -K | |
- name: Package | |
working-directory: debian | |
run: | | |
dpkg-scanpackages --multiversion . > Packages | |
gzip -k -f Packages | |
- name: Release | |
working-directory: debian | |
run: | | |
apt-ftparchive release . > Release | |
gpg --default-key "D0CF12A37328A46974F4DA35B6121C7BD46BDEE5" -abs -o - Release > Release.gpg | |
gpg --default-key "D0CF12A37328A46974F4DA35B6121C7BD46BDEE5" --clearsign -o - Release > InRelease | |
- name: Set git config | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
- name: Commit | |
continue-on-error: true | |
run: | | |
git pull | |
git add . | |
git commit -m "Release Debian package" | |
- name: Push updated deb package | |
continue-on-error: true | |
uses: jcs090218/github-push-action@master | |
with: | |
branch: master | |
rebase: true | |
retry: 7 |