Build and Package on Release #8
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: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest] | |
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 | |
dist/*.dmg |