-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- releaseが作成されたらWindowsとMac用にインストーラーが自動作成され、releaseからダウンロードできる - イメージ:https://github.com/MIERUNE/tauri-build-sample/releases - また、ビルドするために、tauriのidentifierを変えています。 ``` Error You must change the bundle identifier in `tauri.conf.json > tauri > bundle > identifier`. The default Value `com.tauri.dev` is not allowed as it must be unique across applications. ``` - github actionsを発火させるために、このようなテスト手順になります - mainブランチにマージ - releaseを発行 - actionが正常終了したら、ファイルをローカルにダウンロード
- Loading branch information
Showing
2 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, windows-latest] | ||
runs-on: ${{ matrix.platform }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Rust setup | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Rust cache | ||
uses: swatinem/rust-cache@v2 | ||
with: | ||
workspaces: './src-tauri -> target' | ||
|
||
- name: Sync node version and setup cache | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 'lts/*' | ||
cache: 'npm' | ||
cache-dependency-path: ./app/package-lock.json | ||
|
||
- name: Install frontend dependencies | ||
run: npm install | ||
working-directory: ./app | ||
|
||
- name: Build the app | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tagName: ${{ github.event.release.tag_name }} | ||
releaseName: "App v__VERSION__" | ||
releaseDraft: true | ||
prerelease: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters