55 branches :
66 - release
77
8- # This is the example from the readme.
9- # On each push to the `release` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release.
10-
118jobs :
129 publish-tauri :
1310 permissions :
@@ -16,11 +13,11 @@ jobs:
1613 fail-fast : false
1714 matrix :
1815 include :
19- - platform : " macos-latest" # for Arm based macs (M1 and above).
16+ - platform : " macos-latest"
2017 args : " --target aarch64-apple-darwin"
21- - platform : " macos-latest" # for Intel based macs.
18+ - platform : " macos-latest"
2219 args : " --target x86_64-apple-darwin"
23- - platform : " ubuntu-22 .04" # for Tauri v1 you could replace this with ubuntu-20.04.
20+ - platform : " ubuntu-18 .04"
2421 args : " "
2522 - platform : " windows-latest"
2623 args : " "
@@ -29,38 +26,35 @@ jobs:
2926 steps :
3027 - uses : actions/checkout@v4
3128
32- - name : setup node
29+ - name : Setup Node.js
3330 uses : actions/setup-node@v4
3431 with :
3532 node-version : lts/*
3633
37- - name : setup pnpm
34+ - name : Setup pnpm
3835 uses : pnpm/action-setup@v4 # docs https://pnpm.io/continuous-integration#github-actions
3936
40- - name : install Rust stable
37+ - name : Setup Rust
4138 uses : dtolnay/rust-toolchain@stable
42- with :
43- # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
44- targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4539
46- - name : install dependencies (ubuntu only)
47- if : matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
40+ - name : Install dependencies (Linux only)
41+ if : runner.os == 'Linux'
4842 run : |
49- sudo apt-get update
50- sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
51- # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
52- # You can remove the one that doesn't apply to your app to speed up the workflow a bit.
43+ sudo apt update
44+ sudo apt install -y libfuse2 libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev squashfs-tools patchelf
5345
54- - name : install frontend dependencies
55- run : pnpm install # change this to npm, pnpm or bun depending on which one you use.
46+ - name : Install frontend dependencies
47+ run : pnpm install
5648
57- - uses : tauri-apps/tauri-action@v0
49+ - name : Build and publish
50+ uses : tauri-apps/tauri-action@v0
5851 env :
5952 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6053 with :
61- tagName : thisweek-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
54+ tagName : thisweek-v__VERSION__
6255 releaseName : " ThisWeek v__VERSION__"
63- releaseBody : " See the assets to download this version and install ."
56+ releaseBody : " See the assets below ."
6457 releaseDraft : true
6558 prerelease : false
6659 args : ${{ matrix.args }}
60+
0 commit comments