2024-03-01 13:45:00 -08:00
|
|
|
name: 'Publish'
|
2024-03-01 12:35:13 -08:00
|
|
|
|
2024-03-01 13:45:00 -08:00
|
|
|
# This will trigger the action manually.
|
2024-03-01 12:35:13 -08:00
|
|
|
on:
|
2024-03-01 13:45:00 -08:00
|
|
|
workflow_dispatch:
|
2024-03-01 12:35:13 -08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish-tauri:
|
2024-03-01 12:42:20 -08:00
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./client
|
2024-03-13 12:57:15 -07:00
|
|
|
|
2024-03-01 12:35:13 -08:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-03-13 12:57:15 -07:00
|
|
|
|
2024-03-01 12:35:13 -08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
2024-03-01 13:05:54 -08:00
|
|
|
platform: [windows-latest]
|
2024-03-13 12:57:15 -07:00
|
|
|
|
2024-03-01 12:35:13 -08:00
|
|
|
runs-on: ${{ matrix.platform }}
|
2024-03-13 12:57:15 -07:00
|
|
|
|
2024-03-01 12:35:13 -08:00
|
|
|
steps:
|
2024-03-13 12:57:15 -07:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: setup node
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
|
|
|
- name: install Rust stable
|
|
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v3
|
|
|
|
with:
|
|
|
|
version: 8
|
|
|
|
|
|
|
|
- name: install frontend dependencies
|
|
|
|
run: pnpm install
|
|
|
|
|
|
|
|
- name: build and release tauri app
|
|
|
|
uses: tauri-apps/tauri-action@v0
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2024-03-13 13:02:27 -07:00
|
|
|
projectPath: ./client
|
2024-03-13 12:57:15 -07:00
|
|
|
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
|
|
|
|
releaseName: 'Jankboard 2 v__VERSION__'
|
|
|
|
releaseBody: 'See the assets to download this version and install.'
|
|
|
|
releaseDraft: true
|
|
|
|
prerelease: false
|
2024-03-13 13:08:38 -07:00
|
|
|
tauriScript: 'pnpm tauri'
|