Skip to content

Commit

Permalink
ci: fix build packages
Browse files Browse the repository at this point in the history
Signed-off-by: moabu <[email protected]>
  • Loading branch information
moabu committed Dec 24, 2024
1 parent 4376e79 commit 8e9ba8e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ jobs:
- name: Get latest tag
id: previoustag
run: |
echo "version=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)" >> $GITHUB_OUTPUT
VERSION=$(echo ${{ github.event.ref }} | cut -d 'v' -f 2)
if [[ ${{ github.event.ref }} != *nightly* ]]; then
VERSION="${VERSION}-stable"
fi
echo "version=${VERSION}" >> $GITHUB_OUTPUT
echo "tag=$(echo ${{ github.event.ref }} | cut -d '/' -f 3)" >> $GITHUB_OUTPUT
echo "SETUP_PREFIX=jans-linux" >> ${GITHUB_ENV}
echo "TUI_PREFIX=jans-cli-tui-linux" >> ${GITHUB_ENV}
Expand Down Expand Up @@ -410,7 +415,7 @@ jobs:
- name: Generate sha256sum and sign
id: sign-cedarling
run: |
TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3)
TAG=$(echo ${{ github.event.ref }} | cut -d '/' -f 3 | sed 's/^v//')
VERSION="${TAG}"
if [ "${TAG}" == "nightly" ]; then
VERSION=nightly
Expand Down

0 comments on commit 8e9ba8e

Please sign in to comment.