Skip to content

Commit

Permalink
NOJ - Debian package release hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
gr211 committed Jun 20, 2024
1 parent a2c2ebb commit 7ff734c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ on:
- 'latest'

env:
DEB_PKG_NAME: gohip-${{ github.ref }}-x86_64.deb
RPM_PKG_NAME: gohip-${{ github.ref }}-1.x86_64.rpm
ARCH_PKG_NAME: gohip-bin-${{ github.ref }}-1-x86_64.pkg.tar.zst
RELEASE_VERSION: $(echo ${{ github.ref }} | tr -d 'refs/tags/v')

jobs:
build:
Expand Down Expand Up @@ -57,16 +55,13 @@ jobs:
- name: Create Debian package
env:
DESTDIR: '/tmp/gohip-deb' # keep path absolute - meson has issues with relative paths on CI
RELEASE_VERSION: $(echo ${{ github.ref }} | tr -d 'refs/tags/v')
run: |
mkdir -p $DESTDIR
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} RELEASE_VERSION=$RELEASE_VERSION DESTDIR=$DESTDIR make debian-pkg
find $DESTDIR
- name: Upload Debian release
uses: softprops/action-gh-release@v1
env:
RELEASE_VERSION: $(echo ${{ github.ref }} | tr -d 'refs/tags/v')
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
Expand Down

0 comments on commit 7ff734c

Please sign in to comment.