Skip to content

Build and Package on Release #10

Build and Package on Release

Build and Package on Release #10

Workflow file for this run

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