Skip to content

Commit

Permalink
Use environment variable to manage the tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcaunt committed Dec 17, 2024
1 parent 5b92d32 commit 94b7c26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-publish-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
PACKAGE_VERSION=$(cat ./debian-package/VERSION)
mv ./debian-package/webx-engine_${PACKAGE_VERSION}_amd64.deb ./debian-package/webx-engine_${PACKAGE_VERSION}_ubuntu_22.04_amd64.deb
echo "::set-output name=version::${PACKAGE_VERSION}"
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
- name: Upload Debian package to GHCR
uses: actions/upload-artifact@v3
Expand All @@ -51,6 +52,6 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: debian-package/*.deb
tag: ${{ steps.docker_build.outputs.version }}
tag: ${{ env.PACKAGE_VERSION }}
name: "WebX Engine Debian Packages"
body: "Automatically built and uploaded Debian packages."
body: "Automatically built and uploaded Debian packages for release ${{ env.PACKAGE_VERSION }}."

0 comments on commit 94b7c26

Please sign in to comment.