Skip to content

Commit

Permalink
Move the git-buildpackage to a better process
Browse files Browse the repository at this point in the history
So this will build the package and tag appropriately if it's successful

Signed-off-by: John 'Warthog9' Hawley <[email protected]>
  • Loading branch information
warthog9 committed Jul 19, 2024
1 parent a47e797 commit 5aa72bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/buildrelease-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: Build Release debian package
run-name: Build Release debian package
on:
push:
tags: [ 'upstream/*' ]
tags: [ 'v*' ]

jobs:
builddeb:
runs-on: ubuntu-latest
steps:
- run: sudo apt install -y git-buildpackage debhelper
- uses: actions/checkout@v4
- run: gbp buildpackage --git-ignore-branch
- run: gbp buildpackage --git-ignore-branch --git-tag --git-upstream-tag='v%(version)s'
- name: release
uses: actions/create-release@v1
id: create_release
Expand All @@ -22,6 +22,9 @@ jobs:
#body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Push Git Tag
run: |
git push origin --tags
- name: upload debian package
run: gh release upload ${{ github.ref_name }} ../*.deb
env:
Expand Down

0 comments on commit 5aa72bd

Please sign in to comment.