-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (59 loc) · 2.07 KB
/
Copy pathrelease.yml
File metadata and controls
71 lines (59 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
tag:
description: "Existing git tag to release (e.g. v0.1.0)"
required: true
default: "v0.1.0"
permissions:
contents: write
jobs:
release-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', inputs.tag) || github.ref }}
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- uses: swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: npm ci
- uses: tauri-apps/tauri-action@v0
id: tauri
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
releaseName: SC Helper ${{ github.event_name == 'workflow_dispatch' && inputs.tag || github.ref_name }}
releaseBody: |
Windows installer for SC Helper.
Download `SC Helper_*_x64-setup.exe` below and run the installer.
Requires Windows 10/11 with [WebView2](https://developer.microsoft.com/microsoft-edge/webview2/).
See [README](https://github.com/codedevdev/sc-helper#download) for details.
releaseCommitish: ${{ github.sha }}
releaseDraft: false
prerelease: false
args: --bundles nsis
- name: Upload NSIS installer (workflow artifact)
if: success()
uses: actions/upload-artifact@v4
with:
name: windows-latest-nsis
path: src-tauri/target/release/bundle/nsis/*.exe
if-no-files-found: error
- name: Verify release outputs
if: always()
shell: bash
run: |
echo "releaseId=${{ steps.tauri.outputs.releaseId }}"
echo "releaseHtmlUrl=${{ steps.tauri.outputs.releaseHtmlUrl }}"
echo "artifactPaths=${{ steps.tauri.outputs.artifactPaths }}"