Skip to content

Commit

Permalink
refactor(ci): simplify the build-release step
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Nov 9, 2023
1 parent 3794696 commit 509aeed
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,16 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build .deb
- name: Build and Upload .deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt-get -y update
sudo apt-get -y install debhelper devscripts
REL_VER=$(grep "^readonly VERSION" deb-get | cut -d'"' -f2)
dch -v "${REL_VER}-1" --distribution=unstable "New upstream release."
dpkg-buildpackage --build=binary --no-check-builddeps --compression=gzip
- name: Upload .deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
for artefact in "../"*_all.deb; do
gh release upload "${{ github.ref }}" "${artefact}" --clobber
done
gh release upload "${{ github.ref }}" "../deb-get_${REL_VER}-1_all.deb" --clobber
publish-release:
name: Publish Release
Expand Down

0 comments on commit 509aeed

Please sign in to comment.