Release(electron): 4.5.1 #33
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-release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v4.* | |
jobs: | |
build: | |
name: build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, macOS-latest] | |
env: | |
# electron-builder 在 CI 机器上会因为 unpack ffmpeg-static 报错,参考了该修复方案: | |
# https://github.com/electron-userland/electron-builder/issues/3179 | |
USE_HARD_LINKS: false | |
# 提供给 electron-builder 上传 release assets 时使用。 | |
GITHUB_TOKEN: ${{ secrets.repo_contents_token }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: yarn | |
- run: cd ./packages/shared && yarn build | |
- run: cd ./packages/manager && yarn build | |
- run: yarn app:build -p=always |