Skip to content

Commit a58b13f

Browse files
release zip pkg of webgal
1 parent bad3204 commit a58b13f

3 files changed

Lines changed: 57 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,56 @@ on:
55
tags:
66
- '*.*'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
12+
build-webgal-static-webpage:
13+
name: Build WebGAL Static Webpage
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
persist-credentials: false
20+
21+
- name: Setup Node.js environment
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version-file: package.json
25+
cache: 'yarn'
26+
27+
- name: Install
28+
run: npm install yarn -g && yarn install
29+
30+
- name: Build
31+
run: yarn build
32+
33+
- name: Package WebGAL Engine Web
34+
run: |
35+
cd packages/webgal/dist
36+
zip -r "$GITHUB_WORKSPACE/webgal-engine-web.zip" .
37+
38+
- name: Upload WebGAL Engine Artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: webgal-engine-web
42+
path: webgal-engine-web.zip
43+
if-no-files-found: error
44+
945
release:
1046
name: Release
1147
runs-on: ubuntu-latest
48+
needs: build-webgal-static-webpage
1249
steps:
1350
- name: Checkout
1451
uses: actions/checkout@v2
1552

53+
- name: Download WebGAL Engine Artifact
54+
uses: actions/download-artifact@v4
55+
with:
56+
name: webgal-engine-web
57+
1658
- name: Create Release
1759
id: create_release
1860
uses: actions/create-release@v1
@@ -24,3 +66,13 @@ jobs:
2466
body_path: releasenote.md
2567
draft: true
2668
prerelease: false
69+
70+
- name: Upload WebGAL Engine Web
71+
uses: actions/upload-release-asset@v1
72+
env:
73+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
with:
75+
upload_url: ${{ steps.create_release.outputs.upload_url }}
76+
asset_path: webgal-engine-web.zip
77+
asset_name: WebGAL-${{ github.ref_name }}-web.zip
78+
asset_content_type: application/zip

packages/parser/rollup.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default [
4040
tsconfigOverride: {
4141
compilerOptions: {
4242
sourceMap: !isProd,
43+
rootDir: "src",
4344
declarationDir: "build/cjs"
4445
}, include: ["src"]
4546
}
@@ -61,6 +62,7 @@ export default [
6162
tsconfigOverride: {
6263
compilerOptions: {
6364
sourceMap: !isProd,
65+
rootDir: "src",
6466
declarationDir: "build/types"
6567
}, include: ["src"]
6668
}

releasenote.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## 发布日志
22

3-
**本仓库只发布源代码**
3+
**本仓库发布源代码,并在 Release 中附带 WebGAL 引擎网页版压缩包**
44

55
**如果你想要体验使用便捷的图形化编辑器创建、制作并实时预览 WebGAL 游戏,请 [下载 WebGAL 图形化编辑器](https://github.com/OpenWebGAL/WebGAL_Terre/releases)**
66

@@ -37,7 +37,7 @@ Pixi 舞台支持按需渲染,仅在动画或动态资源存在时运行 ticke
3737
<!-- English Translation -->
3838
## Release Notes
3939

40-
**Only source code is released in this repository**
40+
**This repository releases source code and includes a WebGAL engine web package in each Release**
4141

4242
**If you want to experience creating, making, and real-time previewing WebGAL games using a user-friendly graphical editor, please [download the WebGAL graphical editor](https://github.com/OpenWebGAL/WebGAL_Terre/releases)**
4343

@@ -74,7 +74,7 @@ Fixed old user data being fully reset when fields are missing; missing default f
7474
<!-- Japanese Translation -->
7575
## リリースノート
7676

77-
**このリポジトリはソースコードのみを公開しています**
77+
**このリポジトリではソースコードを公開し、Release には WebGAL エンジンの Web 版パッケージも同梱しています**
7878

7979
**もしあなたが使いやすいグラフィカルエディタでWebGALゲームを作成、制作、リアルタイムプレビューしたい場合は、[WebGALグラフィカルエディタをダウンロードしてください](https://github.com/OpenWebGAL/WebGAL_Terre/releases)**
8080

0 commit comments

Comments
 (0)