Use env.VERSION for artifact names
Some checks failed
build / build-linux (push) Successful in 15s
release / build-deb (push) Successful in 49s
release / release (push) Failing after 8s

This commit is contained in:
kdusek
2025-12-07 23:53:40 +01:00
parent 2b7079612e
commit 5ce72c71e3

View File

@@ -28,6 +28,8 @@ jobs:
ls -la /lib/x86_64-linux-gnu/libpython* 2>/dev/null || echo "Not found in /lib"
- name: Build binary
run: pyinstaller gotify-tray.spec
- name: Set version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- name: Install Ruby and fpm
run: |
sudo apt-get update
@@ -65,21 +67,23 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: gotify-tray_${{github.ref_name#v}}_amd64.deb
path: dist/gotify-tray_${{github.ref_name#v}}_amd64.deb
name: gotify-tray_${{ env.VERSION }}_amd64.deb
path: dist/gotify-tray_${{ env.VERSION }}_amd64.deb
release:
runs-on: ubuntu-latest
needs: [build-deb]
steps:
- uses: actions/checkout@v4
- name: Set version
run: echo "VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
- uses: actions/download-artifact@v2
with:
name: gotify-tray_${{github.ref_name#v}}_amd64.deb
name: gotify-tray_${{ env.VERSION }}_amd64.deb
- name: Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITEA_TOKEN }}"
prerelease: false
files: |
gotify-tray_${{github.ref_name#v}}_amd64.deb
gotify-tray_${{ env.VERSION }}_amd64.deb