| 1 | name: "publish" |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - release |
| 6 | |
| 7 | jobs: |
| 8 | publish-tauri: |
| 9 | strategy: |
| 10 | fail-fast: false |
| 11 | matrix: |
| 12 | platform: [windows-latest] |
| 13 | |
| 14 | runs-on: ${{ matrix.platform }} |
| 15 | steps: |
| 16 | - name: Checkout repository |
| 17 | uses: actions/checkout@v3 |
| 18 | |
| 19 | - name: Rust setup |
| 20 | uses: dtolnay/rust-toolchain@stable |
| 21 | |
| 22 | - name: Rust cache |
| 23 | uses: swatinem/rust-cache@v2 |
| 24 | with: |
| 25 | workspaces: './src-tauri -> target' |
| 26 | |
| 27 | - name: setup node |
| 28 | uses: actions/setup-node@v3 |
| 29 | with: |
| 30 | node-version: 'lts/*' |
| 31 | cache: 'yarn' |
| 32 | |
| 33 | - name: Install frontend dependencies |
| 34 | run: yarn install |
| 35 | |
| 36 | - name: Build the app |
| 37 | uses: tauri-apps/tauri-action@v0 |
| 38 | env: |
| 39 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 40 | with: |
| 41 | tagName: v__VERSION__-alpha # the action automatically replaces \_\_VERSION\_\_ with the app version |
| 42 | releaseName: "Svara v__VERSION__-alpha" |
| 43 | releaseBody: | |
| 44 | Please refer to [the contribution guidelines](https://github.com/setoelkahfi/svara/blob/master/CONTRIBUTING.md#submitting-issues) for info on submitting bug reports. |
| 45 | |
| 46 | ### *Will have bugs/missing/incomplete features.* |
| 47 | releaseDraft: true |
| 48 | prerelease: true |
| 49 | includeDebug: true |