-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from neo896/neo896-patch-1
Create main.yml
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
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,52 @@ | ||
name: App Builder | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: [macos-latest, windows-latest] | ||
include: | ||
- os: macos-latest | ||
rust_target: x86_64-apple-darwin | ||
- os: macos-latest | ||
rust_target: aarch64-apple-darwin | ||
- os: windows-latest | ||
rust_target: x86_64-pc-windows-msvc | ||
runs-on: ${{ matrix.platform }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Node.js setup | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: latest | ||
|
||
- name: Install Rust toolchain | ||
run: | | ||
rustup update --no-self-update | ||
- name: Install app dependencies from lockfile and build web | ||
run: npm install && npm run build | ||
|
||
- name: Build the app | ||
uses: tauri-apps/tauri-action@v0 | ||
# if u get Error: Resource not accessible by integration | ||
# go to repository Settings => Action => General => Workflow permissions => Switch to Read and Write permisions | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# tauri-action replaces \_\_VERSION\_\_ with the app version | ||
tagName: ${{ github.ref_name }} | ||
releaseName: "Sensor-Viewer v__VERSION__" | ||
releaseBody: | | ||
${{steps.build_changelog.outputs.changelog}} | ||
See the assets to download this version and install. | ||
releaseDraft: true | ||
prerelease: false |