1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- name: CI 自动构建linux arm electron 包,并保存结果
- on:
- push:
- branches:
- - master
- repository_dispatch:
- types:
- - webhook_trigger
- jobs:
- build:
- runs-on: self-hosted
- steps:
- - name: 检出代码
- uses: actions/checkout@v4
- - name: 设置 Node.js 环境
- uses: actions/setup-node@v4
- with:
- node-version: '20'
- - name: 安装依赖
- run: npm install --force
- - name: 运行自定义构建脚本
- env:
- GH_TOKEN: ${{ secrets.GH_TOKEN }} # 关键:把 secret 映射成环境变量
- run: node .build/h5_for_electron.build.linux.arm.js
- - name: 切换 Node.js 18 环境
- uses: actions/setup-node@v4
- with:
- node-version: '18'
- - name: 构建 PKG
- run: npm run pkg
- - name: 上传构建结果
- uses: actions/upload-artifact@v4
- with:
- name: build-output
- path: ./dist
|