1- name : ' Publish Tauri Application '
1+ name : ' publish '
22
33on :
4- release :
5- types : [published, edited]
4+ push :
5+ branches :
6+ - release
7+
8+ # This workflow will trigger on each push to the `release` branch to create or update a GitHub release, build your app, and upload the artifacts to the release.
69
710jobs :
8- build-tauri :
11+ publish-tauri :
12+ permissions :
13+ contents : write
914 strategy :
1015 fail-fast : false
1116 matrix :
12- platform : [macos-latest, ubuntu-latest, windows-latest]
17+ include :
18+ - platform : ' macos-latest'
19+ args : ' --target aarch64-apple-darwin'
20+ - platform : ' macos-latest'
21+ args : ' --target x86_64-apple-darwin'
22+ - platform : ' ubuntu-22.04'
23+ args : ' '
24+ - platform : ' windows-latest'
25+ args : ' '
1326
1427 runs-on : ${{ matrix.platform }}
1528 steps :
16- - name : Checkout repository
17- uses : actions/checkout@v4
29+ - uses : actions/checkout@v4
1830
19- - name : Setup Node.js
31+ - name : setup node
2032 uses : actions/setup-node@v4
2133 with :
22- node-version : ' 20'
23- cache : ' npm'
34+ node-version : lts/*
2435
25- - name : Install Rust toolchain
36+ - name : install Rust stable
2637 uses : dtolnay/rust-toolchain@stable
38+ with :
39+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
2740
28- - name : Install Linux dependencies
29- if : matrix.platform == 'ubuntu-latest'
41+ - name : install dependencies (ubuntu only)
42+ if : matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
3043 run : |
3144 sudo apt-get update
32- sudo apt-get install -y libgtk-3 -dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
45+ sudo apt-get install -y libwebkit2gtk-4.0 -dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
3346
34- - name : Install frontend dependencies and build
35- run : |
36- npm install
37- npm run build
47+ - name : install frontend dependencies
48+ run : yarn install
3849
39- - name : Build and Publish Tauri app
40- uses : tauri-apps/tauri-action@v0
50+ - uses : tauri-apps/tauri-action@v0
4151 env :
4252 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4353 with :
44- projectPath : src-tauri
45- args : ' --release'
54+ tagName : DBD-OBS-Overlay-v0.1.0
55+ releaseName : ' DBD OBS Overlay v0.1.0'
56+ releaseBody : ' See the assets to download this version and install.'
57+ releaseDraft : false
58+ prerelease : false
59+ args : ${{ matrix.args }}
0 commit comments