File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : ["develop"]
6+ workflow_dispatch :
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : Checkout scratch-gui
13+ uses : actions/checkout@v4
14+
15+ - name : Install Node.js
16+ uses : actions/setup-node@v4
17+ with :
18+ node-version : 22
19+
20+ - name : Install pnpm
21+ uses : pnpm/action-setup@v4
22+ with :
23+ version : 9
24+
25+ - name : Install dependencies
26+ run : pnpm install --frozen-lockfile
27+
28+ - name : Generate files
29+ run : npm run prepublish
30+
31+ - name : Build
32+ run : NODE_ENV=production npm run build
33+
34+ - name : Checkout astraeditor.github.io
35+ uses : actions/checkout@v4
36+ with :
37+ repository : AstraEditor/astraeditor.github.io
38+ token : ${{ secrets.DEPLOY_TOKEN }}
39+ path : gh-pages
40+
41+ - name : Deploy to online directory
42+ run : |
43+ cd gh-pages
44+ # 清空 online 目录(保留 .git)
45+ find online -mindepth 1 -delete
46+ # 复制构建产物
47+ cp -r $GITHUB_WORKSPACE/build/* online/
48+ # 提交
49+ git config user.name "github-actions[bot]"
50+ git config user.email "github-actions[bot]@users.noreply.github.com"
51+ git add -A
52+ git diff --quiet && git diff --staged --quiet || \
53+ git commit -m "New Release Version from scratch-gui ${GITHUB_SHA:0:7}"
54+ git push
Original file line number Diff line number Diff line change 5050 git config user.email "github-actions[bot]@users.noreply.github.com"
5151 git add -A
5252 git diff --quiet && git diff --staged --quiet || \
53- git commit -m "Deploy from scratch-gui ${GITHUB_SHA:0:7}"
54- git push
53+ git commit -m "A Snapshot Version from scratch-gui ${GITHUB_SHA:0:7}"
54+ git push
Original file line number Diff line number Diff line change 11const version = {
22 version : '1.1.3' ,
3- date : '2026-03-05 ' ,
4- webBuild : '0 ' ,
3+ date : '2026-03-23 ' ,
4+ webBuild : '1 ' ,
55 webUpdate : [
6- '修复启用“手机布局”和“紧凑编辑器”会导致在部分情况下舞台被覆盖的问题' ,
7- '修复“角色文件列表视图”(sprite-folders)的右键和导出问题'
6+ '修复Monitor的一系列问题' ,
7+ '简单调整了UI' ,
8+ '添加了新的扩展编辑器(仍在测试)' ,
9+
810 ]
911} ;
1012export default version ;
You can’t perform that action at this time.
0 commit comments