-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (27 loc) · 865 Bytes
/
release.yml
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
name: Build and Package on Release
on:
release:
types: [published]
jobs:
build-and-package:
runs-on: windows-latest # Use a Windows runner to build the .exe
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Specify the Node.js version
- name: Install PNPM
run: npm install -g [email protected]
- name: Install dependencies
run: pnpm install
- name: Build and package app
run: pnpm run dist
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: app-executable
path: dist/*.exe # Adjust this to match the output directory and file pattern of your packaged app