✨ feat: 添加应用内更新提醒 #48
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
# Dev 分支推送部署预览 | |
## 仅部署 Win 端 | |
name: Build Dev | |
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
release: | |
name: Build and electron app | |
runs-on: windows-latest | |
steps: | |
# 检出 Git 仓库 | |
- name: Check out git repository | |
uses: actions/checkout@v4.1.1 | |
# 安装 Node.js | |
- name: Install Node.js | |
uses: actions/setup-node@v4.0.0 | |
with: | |
node-version: "18.x" | |
# 安装项目依赖 | |
- name: Install Dependencies | |
run: npm install | |
# 构建 Electron App | |
- name: Build Electron App | |
run: npm run build:win | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
# 清理不必要的构建产物 | |
- name: Cleanup Artifacts | |
run: | | |
npx rimraf "dist/!(*.exe)" | |
# 上传构建产物 | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3.1.3 | |
with: | |
name: SPlayer-dev | |
path: dist |