Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
gr211 committed Jun 20, 2024
1 parent dfe55e3 commit 505ebcf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- 'v*.*.*' # Matches v1.0.0, v2.1.3, etc.
- 'latest'

env:
RELEASE_VERSION: $(echo ${{ github.ref }} | tr -d 'refs/tags/v')

jobs:
build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,7 +54,8 @@ jobs:
DESTDIR: '/tmp/gohip-deb' # keep path absolute - meson has issues with relative paths on CI
run: |
mkdir -p $DESTDIR
printenv|sort
RELEASE_VERSION=$(echo ${{ github.ref }} | tr -d 'refs/tags/v')
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} RELEASE_VERSION=$RELEASE_VERSION DESTDIR=$DESTDIR make debian-pkg
find $DESTDIR
Expand All @@ -66,5 +64,5 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: |
gohip-${RELEASE_VERSION}-x86_64.deb
gohip-${RELEASE_VERSION}-x86_64.deb.md5sum
gohip-$RELEASE_VERSION-x86_64.deb
gohip-$RELEASE_VERSION-x86_64.deb.md5sum

0 comments on commit 505ebcf

Please sign in to comment.