Build and Package on Release #2
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: 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 | |
- 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 |