Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

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

Nguyen Ngoc Minh9a511fd5fa9d
diff --git a/.github/workflows/template-tauri-build-linux-x64.yml b/.github/workflows/template-tauri-build-linux-x64.yml
index 20663ea69..44e299de4 100644
--- a/.github/workflows/template-tauri-build-linux-x64.yml
+++ b/.github/workflows/template-tauri-build-linux-x64.yml
@@ -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
diff --git a/.github/workflows/template-tauri-build-macos.yml b/.github/workflows/template-tauri-build-macos.yml
index 40cf4e839..af14a6555 100644
--- a/.github/workflows/template-tauri-build-macos.yml
+++ b/.github/workflows/template-tauri-build-macos.yml
@@ -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
diff --git a/.github/workflows/template-tauri-build-windows-x64.yml b/.github/workflows/template-tauri-build-windows-x64.yml
index 958b7c9f7..d0a86baad 100644
--- a/.github/workflows/template-tauri-build-windows-x64.yml
+++ b/.github/workflows/template-tauri-build-windows-x64.yml
@@ -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