Looking to produce my first Tauri App and I want to create a solid Github action. Using @quaint ridge template I have this current yml. I'm only building for mac and windows.
Current Action:
name: "prod-release"
on:
pull_request:
branches:
- master
jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4
with:
version: 7.14.1
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
- name: install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: install app dependencies and build it
run: pnpm i && pnpm build
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_GRAPHQL_ENDPOINT_CLOUD: ""
VITE_REFRESH_ENDPOINT_CLOUD: ""
with:
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "App v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: true
prerelease: false
what are some good ways to improve this? And ideally test before using on Github