ci: resolve nested template expression in artifact names (#5875)

* ci: update artifact name for Linux and Windows build

* ci: enhance logic for naming convention for mac, linux and windows builds

* fix: resolve nested template expression in artifact names
This commit is contained in:
Nguyen Ngoc Minh 2025-07-23 03:48:33 -07:00 committed by GitHub
parent 3a8af3c24d
commit 9a511fd5fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -164,14 +164,14 @@ jobs:
if: inputs.public_provider != 'github'
uses: actions/upload-artifact@v4
with:
name: jan-linux-amd64-${{ inputs.new_version }}-deb
name: ${{ inputs.channel == 'stable' && 'jan' || format('jan-{0}', inputs.channel) }}-linux-amd64-${{ inputs.new_version }}.deb
path: ./src-tauri/target/release/bundle/deb/*.deb
- name: Upload Artifact
if: inputs.public_provider != 'github'
uses: actions/upload-artifact@v4
with:
name: jan-linux-amd64-${{ inputs.new_version }}-AppImage
name: ${{ inputs.channel == 'stable' && 'jan' || format('jan-{0}', inputs.channel) }}-linux-amd64-${{ inputs.new_version }}.AppImage
path: ./src-tauri/target/release/bundle/appimage/*.AppImage
## Set output filename for linux

View File

@ -189,7 +189,7 @@ jobs:
if: inputs.public_provider != 'github'
uses: actions/upload-artifact@v4
with:
name: jan-${{ inputs.channel }}-mac-universal-${{ inputs.new_version }}.dmg
name: ${{ inputs.channel == 'stable' && 'jan' || format('jan-{0}', inputs.channel) }}-mac-universal-${{ inputs.new_version }}.dmg
path: |
./src-tauri/target/universal-apple-darwin/release/bundle/dmg/*.dmg

View File

@ -198,7 +198,7 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: jan-windows-${{ inputs.new_version }}
name: ${{ inputs.channel == 'stable' && 'jan' || format('jan-{0}', inputs.channel) }}-windows-${{ inputs.new_version }}.exe
path: |
./src-tauri/target/release/bundle/nsis/*.exe