Skip to content

Commit

Permalink
Merge pull request #1 from neo896/neo896-patch-1
Browse files Browse the repository at this point in the history
Create main.yml
  • Loading branch information
neo896 authored Dec 9, 2023
2 parents 063bb7a + 7f91219 commit 866bf55
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/main.yml
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

0 comments on commit 866bf55

Please sign in to comment.