mirror of
https://github.com/R0m1k3/TodoFlow.git
synced 2026-10-24 07:38:08 +02:00
Set up package.json and GitHub Actions workflow to build and release the Windows (.exe) Tauri installer
This commit is contained in:
1 parent
a465da7cc1
commit
7ac3234dbe
3 files changed
+62
-1
No files matched your search
@@ -0,0 +1,51 @@
|
|||||||
|
name: Release Tauri App
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
platform: [windows-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.platform }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Rust cache
|
||||||
|
uses: swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
workspaces: './widget/src-tauri -> target'
|
||||||
|
|
||||||
|
- name: Install app dependencies
|
||||||
|
run: |
|
||||||
|
cd widget
|
||||||
|
npm install
|
||||||
|
|
||||||
|
- name: Build the Tauri app
|
||||||
|
uses: tauri-apps/tauri-action@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
tagName: v__VERSION__
|
||||||
|
releaseName: 'TodoFlow v__VERSION__'
|
||||||
|
releaseBody: 'Release generated automatically by GitHub Actions.'
|
||||||
|
releaseDraft: true
|
||||||
|
prerelease: false
|
||||||
|
projectPath: './widget'
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "todoflow-widget",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"tauri": "tauri"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@tauri-apps/cli": "^1.6.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -34,7 +34,6 @@
|
|||||||
"entitlements": null,
|
"entitlements": null,
|
||||||
"exceptionDomain": "",
|
"exceptionDomain": "",
|
||||||
"frameworks": [],
|
"frameworks": [],
|
||||||
"providerBundleIdentifier": null,
|
|
||||||
"signingIdentity": null
|
"signingIdentity": null
|
||||||
},
|
},
|
||||||
"resources": [],
|
"resources": [],
|
||||||
|
|||||||
Reference in new issue
Block a user