-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Dev 分支推送部署预览 | ||
## 仅部署 Win 端 | ||
name: Build Dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: Build Website | ||
runs-on: windows-latest | ||
|
||
steps: | ||
# 检出 Git 仓库 | ||
- name: Check out git repository | ||
uses: actions/[email protected] | ||
# 安装 Node.js | ||
- name: Install Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: "18.x" | ||
# 安装项目依赖 | ||
- name: Install Dependencies | ||
run: npm install | ||
# 构建程序 | ||
- name: Build Website | ||
run: npm run build | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
# 上传构建产物 | ||
- name: Upload artifacts | ||
uses: actions/[email protected] | ||
with: | ||
name: Home | ||
path: dist |
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