Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue committed Jan 31, 2023
1 parent d0edfae commit a630bbe
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,20 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v2
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
cache: "pnpm"
- uses: dtolnay/rust-toolchain@stable
- name: Install dependencies (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt update
sudo apt install -y libwebkit2gtk-4.0-dev libssl-dev libgtk-3-dev libappindicator3-dev librsvg2-dev
- name: Pnpm install
run: |
corepack enable
pnpm install
- name: Tauri build
run: pnpm tauri build
- name: Upload artifact
uses: actions/upload-artifact@v3
- run: pnpm install
- run: pnpm tauri build
- uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }} executable
path: src-tauri/target/release/${{ matrix.exe }}
Expand All @@ -61,7 +56,9 @@ jobs:
if: ${{ github.ref_type == 'tag' }}
uses: softprops/action-gh-release@v1
with:
# https://github.com/softprops/action-gh-release/issues/280#issuecomment-1377056946
# Assuming cwd is ${{ github.workspace }}
files: |
${{ github.workspace }}/src-tauri/target/release/bundle/${{ matrix.bundle }}
${{ github.workspace }}/src-tauri/target/vscch*.7z
./src-tauri/target/release/bundle/${{ matrix.bundle }}
./src-tauri/target/vscch*.7z
draft: true

0 comments on commit a630bbe

Please sign in to comment.