mirror of
https://github.com/Xevion/HATray.git
synced 2025-12-11 06:07:30 -06:00
feat: include version information in builds
This commit is contained in:
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@@ -21,10 +21,14 @@ jobs:
|
||||
- name: Build Linux Binary
|
||||
run: task build
|
||||
|
||||
- name: Get Version
|
||||
id: get_version
|
||||
run: echo "VERSION=$(cat VERSION.txt)" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload Linux Binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: HATray-linux-amd64
|
||||
name: HATray-linux-amd64-${{ env.VERSION }}
|
||||
path: bin/HATray
|
||||
|
||||
build-windows:
|
||||
@@ -59,14 +63,21 @@ jobs:
|
||||
- name: Build MSI
|
||||
run: task package
|
||||
|
||||
- name: Get Version
|
||||
id: get_version_win
|
||||
shell: pwsh
|
||||
run: |
|
||||
$version = Get-Content VERSION.txt
|
||||
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Append
|
||||
|
||||
- name: Upload Windows Binary
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: HATray-windows-amd64.exe
|
||||
name: HATray-windows-amd64-${{ env.VERSION }}.exe
|
||||
path: bin/HATray.exe
|
||||
|
||||
- name: Upload MSI
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: HATray-windows-amd64.msi
|
||||
path: bin/HATray-*.msi
|
||||
name: HATray-windows-amd64-${{ env.VERSION }}.msi
|
||||
path: bin/HATray.msi
|
||||
Reference in New Issue
Block a user