v1.1.5 #10
Workflow file for this run
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
name: "publish" | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
publish-tauri: | |
permissions: | |
contents: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- platform: "windows-latest" | |
args: "" | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: install Rust stable | |
uses: dtolnay/rust-toolchain@stable | |
- name: Rust cache | |
uses: swatinem/rust-cache@v2 | |
with: | |
workspaces: './winscript-app/src-tauri -> target' | |
- name: install frontend dependencies | |
working-directory: ./winscript-app | |
run: npm install | |
- uses: tauri-apps/tauri-action@v0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
with: | |
projectPath: ./winscript-app | |
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version. | |
releaseName: "v__VERSION__" | |
releaseBody: "*The desktop app may be flagged as a threat by Windows Defender; however, this is a false positive. This occurs because the scripts you create with WinScript can modify system settings. Rest assured, WinScript is safe, transparent, and open-source.*" | |
releaseDraft: true | |
prerelease: false | |
args: ${{ matrix.args }} | |
- name: Upload Portable Executable to Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ./winscript-app/src-tauri/target/release/winscript.exe | |
tag_name: ${{ github.ref_name }} | |
draft: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |