11name : ' publish'
22on :
3- push :
4- tags : [ v\d+\.\d+\.\d+ ]
3+ push :
4+ tags : [v\d+\.\d+\.\d+]
55
66jobs :
7- publish-tauri :
8- permissions :
9- contents : write
10- strategy :
11- fail-fast : false
12- matrix :
13- include :
14- - target : aarch64-apple-darwin
15- platform : macos-latest
16- - target : x86_64-apple-darwin
17- platform : macos-latest
18- - target : x86_64-unknown-linux-gnu
19- platform : ubuntu-20.04
20- - target : x86_64-pc-windows-msvc
21- platform : windows-latest
7+ publish-tauri :
8+ permissions :
9+ contents : write
10+ strategy :
11+ fail-fast : false
12+ matrix :
13+ include :
14+ - target : aarch64-apple-darwin
15+ platform : macos-latest
16+ - target : x86_64-apple-darwin
17+ platform : macos-latest
18+ - target : x86_64-unknown-linux-gnu
19+ platform : ubuntu-20.04
20+ - target : x86_64-pc-windows-msvc
21+ platform : windows-latest
2222
23- runs-on : ${{ matrix.platform }}
24- steps :
25- - uses : actions/checkout@v3
23+ runs-on : ${{ matrix.platform }}
24+ steps :
25+ - uses : actions/checkout@v3
2626
27- - name : Get version
28- id : get_version
29- uses : battila7/get-version-action@v2
27+ - name : Get version
28+ id : get_version
29+ uses : battila7/get-version-action@v2
3030
31- - name : setup node
32- uses : actions/setup-node@v3
33- with :
34- node-version : 16
31+ - name : setup node
32+ uses : actions/setup-node@v3
33+ with :
34+ node-version : 16
3535
36- - name : install Rust stable
37- uses : dtolnay/rust-toolchain@stable
36+ - name : install Rust stable
37+ uses : dtolnay/rust-toolchain@stable
3838
39- - name : Rust cache
40- uses : swatinem/rust-cache@v2
41- with :
42- workspaces : ' ./src-tauri -> target'
39+ - name : Rust cache
40+ uses : swatinem/rust-cache@v2
41+ with :
42+ workspaces : ' ./src-tauri -> target'
4343
44- - name : install dependencies (ubuntu only)
45- if : matrix.platform == 'ubuntu-20.04'
46- run : |
47- sudo apt-get update
48- sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libx11-dev libxdo-dev libxcb-shape0-dev libxcb-xfixes0-dev
49- - name : install dependencies (mac only)
50- if : matrix.platform == 'macos-latest'
51- run : |
52- rustup target add aarch64-apple-darwin
53- - uses : actions/cache@v2
54- with :
55- path : ' **/node_modules'
56- key : ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
44+ - name : install dependencies (ubuntu only)
45+ if : matrix.platform == 'ubuntu-20.04'
46+ run : |
47+ sudo apt-get update
48+ sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libx11-dev libxdo-dev libxcb-shape0-dev libxcb-xfixes0-dev
49+ - name : install dependencies (mac only)
50+ if : matrix.platform == 'macos-latest'
51+ run : |
52+ rustup target add aarch64-apple-darwin
53+ - uses : actions/cache@v2
54+ with :
55+ path : ' **/node_modules'
56+ key : ${{ runner.os }}-node-modules-${{ hashFiles('**/yarn.lock') }}
5757
58- - name : install frontend dependencies
59- run : yarn install # change this to npm or pnpm depending on which one you use
58+ - name : install frontend dependencies
59+ run : yarn install # change this to npm or pnpm depending on which one you use
6060
61- - name : Change Version
62- env :
63- VERSION : " ${{ steps.get_version.outputs.version-without-v }}"
64- run : make change-version
61+ - name : Change Version
62+ env :
63+ VERSION : ' ${{ steps.get_version.outputs.version-without-v }}'
64+ run : make change-version
6565
66- - name : Build Tauri App
67- uses : tauri-apps/tauri-action@dev
68- env :
69- GITHUB_TOKEN : ${{ secrets.GITHUBTOKEN }}
70- ENABLE_CODE_SIGNING : ${{ secrets.APPLE_CERTIFICATE }}
71- APPLE_CERTIFICATE : ${{ secrets.APPLE_CERTIFICATE }}
72- APPLE_CERTIFICATE_PASSWORD : ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
73- APPLE_SIGNING_IDENTITY : ${{ secrets.APPLE_SIGNING_IDENTITY }}
74- APPLE_ID : ${{ secrets.APPLE_ID }}
75- APPLE_PASSWORD : ${{ secrets.APPLE_PASSWORD }}
76- TAURI_PRIVATE_KEY : ${{ secrets.TAURI_PRIVATE_KEY }}
77- TAURI_KEY_PASSWORD : ${{ secrets.TAURI_KEY_PASSWORD }}
78- with :
79- tagName : Chatbox-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
80- releaseName : ' Chatbox v__VERSION__'
81- releaseBody : ' See the assets to download this version and install.'
82- releaseDraft : true
83- prerelease : false
84- args : --target ${{matrix.target}}
66+ - name : Build Tauri App
67+ uses : tauri-apps/tauri-action@dev
68+ env :
69+ GITHUB_TOKEN : ${{ secrets.GITHUBTOKEN }}
70+ ENABLE_CODE_SIGNING : ${{ secrets.APPLE_CERTIFICATE }}
71+ APPLE_CERTIFICATE : ${{ secrets.APPLE_CERTIFICATE }}
72+ APPLE_CERTIFICATE_PASSWORD : ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
73+ APPLE_SIGNING_IDENTITY : ${{ secrets.APPLE_SIGNING_IDENTITY }}
74+ APPLE_ID : ${{ secrets.APPLE_ID }}
75+ APPLE_PASSWORD : ${{ secrets.APPLE_PASSWORD }}
76+ TAURI_PRIVATE_KEY : ${{ secrets.TAURI_PRIVATE_KEY }}
77+ TAURI_KEY_PASSWORD : ${{ secrets.TAURI_KEY_PASSWORD }}
78+ with :
79+ tagName : Chatbox-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
80+ releaseName : ' Chatbox v__VERSION__'
81+ releaseBody : ' See the assets to download this version and install.'
82+ releaseDraft : true
83+ prerelease : false
84+ args : --target ${{matrix.target}}
0 commit comments