Fix/vue3/build #48
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: Release a draft release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
jobs: | ||
release: | ||
runs-on: ${{ matrix.os }} | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
strategy: | ||
matrix: | ||
os: [ | ||
macos-latest, | ||
ubuntu-latest, | ||
windows-latest | ||
] | ||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
- name: Install Node.js, NPM and Yarn | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 20.11.0 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Build & release Electron app | ||
shell: bash | ||
env: | ||
# macOS Code signing certificates | ||
CSC_LINK: ${{ secrets.CSC_LINK }} | ||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }} | ||
# macOS notarization API key | ||
APPLEID: ${{ secrets.APPLEID }} | ||
APPLEIDPASS: ${{ secrets.APPLEIDPASSWORD }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SIGN: true | ||
run: | | ||
pnpm install | ||
pnpm build | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
# Artifact name | ||
name: ${{ matrix.os }}-artifact | ||
# Directory containing files to upload | ||
path: release/**/* |