💚 自动构建脚本测试 #5
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 App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
name: build electron app | |
runs-on: ${{matrix.os}} | |
# mac and windows | |
strategy: | |
matrix: | |
os: [windows-latest] | |
steps: | |
- name: Check out git repository | |
uses: actions/[email protected] | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '16' | |
- name: Install and build | |
run: | | |
npm install --legacy-peer-deps | |
npm run build | |
- name: Upload file | |
uses: actions/upload-artifact@v3 | |
with: | |
name: kafka-desktop | |
path: ./release |