Skip to content

Commit 3124b57

Browse files
committed
Merge branch 'develop' into snapshot
2 parents 55e790c + 8f90f4b commit 3124b57

3 files changed

Lines changed: 62 additions & 6 deletions

File tree

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ jobs:
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

src/lib/ae-version.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
const 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
};
1012
export default version;

0 commit comments

Comments
 (0)