feature/share-libs
yaml 45 lines 1.44 KB
Raw
1 name: "Publish desktop"
2 on:
3 push:
4 branches:
5 - main
6
7 env:
8 REACT_APP_SPLITFIRE_API_HOST: ${{ secrets.REACT_APP_SPLITFIRE_API_HOST }}
9 REACT_APP_MUSIK88_BASE_URL: ${{ secrets.REACT_APP_MUSIK88_BASE_URL }}
10 REACT_APP_ACTION_CABLE_URL: ${{ secrets.REACT_APP_ACTION_CABLE_URL }}
11
12 jobs:
13 publish-desktop:
14 permissions:
15 contents: write
16 strategy:
17 fail-fast: false
18 matrix:
19 platform: [macos-latest, ubuntu-20.04, windows-latest]
20
21 runs-on: ${{ matrix.platform }}
22 steps:
23 - uses: actions/checkout@v3
24 - name: setup node
25 uses: actions/setup-node@v3
26 with:
27 node-version: 16
28 - name: Install Rust stable
29 uses: dtolnay/rust-toolchain@stable
30 - name: install dependencies (ubuntu only)
31 if: matrix.platform == 'ubuntu-20.04'
32 run: |
33 sudo apt-get update
34 sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
35 - name: install frontend dependencies
36 run: yarn install
37 - uses: tauri-apps/tauri-action@v0
38 env:
39 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40 with:
41 tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
42 releaseName: "App v__VERSION__"
43 releaseBody: "See the assets to download this version and install."
44 releaseDraft: true
45 prerelease: false