Skip to content

Commit c539722

Browse files
committed
fix linux deps.
determine artifact path.
1 parent 0b038da commit c539722

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
run: |
9797
sudo apt-get update
9898
sudo apt-get install -y gio-2.0
99+
sudo apt-get install libgtk-3-dev # Debian/Ubuntu
99100
100101
- name: Set up Rust
101102
uses: actions-rs/toolchain@v1
@@ -107,16 +108,19 @@ jobs:
107108
- name: Build Tauri app
108109
run: pnpm tauri build
109110

111+
- name: Determine artifact path
112+
id: artifact_path
113+
run: |
114+
if [[ "${{ runner.os }}" == "Windows" ]]; then
115+
echo "artifact_path=src-tauri/target/release/bundle/nsis/" >> $GITHUB_ENV
116+
else
117+
echo "artifact_path=src-tauri/target/release/bundle/" >> $GITHUB_ENV
118+
110119
- name: Upload artifact
111120
uses: actions/upload-artifact@v3
112121
with:
113122
name: ${{ runner.os }}-artifact
114-
path: |
115-
if [[ "${{ runner.os }}" == "Windows" ]]; then
116-
echo "src-tauri/target/release/bundle/nsis/"
117-
else
118-
echo "src-tauri/target/release/bundle/"
119-
fi
123+
path: ${{ env.artifact_path }}
120124

121125
upload_assets:
122126
name: Upload Assets to Release

0 commit comments

Comments
 (0)