Skip to content

Commit cdaa7a9

Browse files
committed
Add minimum version to build docs support
1 parent e695413 commit cdaa7a9

3 files changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,14 @@ on:
1111
repository_dispatch:
1212
types: [forward-push]
1313
workflow_dispatch:
14-
14+
inputs:
15+
min_doc_ver:
16+
# actions run ID
17+
description: 'Please min doc version to build, example: 2.3'
18+
# Default value if no value is explicitly provided
19+
default: '2.3'
20+
# Input has to be provided for the workflow to run
21+
required: true
1522
jobs:
1623
build:
1724
runs-on: ubuntu-latest
@@ -39,7 +46,7 @@ jobs:
3946
ls -r tmp/wasm
4047
git clone https://github.com/axmolengine/axmol.git tmp/axmol-src
4148
git -C tmp/axmol-src checkout dev
42-
./build.ps1 tmp/axmol-src tmp/wasm
49+
./build.ps1 tmp/axmol-src tmp/wasm -min_doc_ver ${{ github.event.inputs.min_doc_ver }}
4350
4451
# Deploy HTML site to GitHub Pages
4552
- name: GH Pages Deployment

build.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
param(
22
$axmol_src = $null,
3-
$wasm_artifact_dir = $null
3+
$wasm_artifact_dir = $null,
4+
$min_doc_ver = '2.3'
45
)
56
if ($wasm_artifact_dir) {
67
$wasm_artifact_dir = (Resolve-Path $wasm_artifact_dir).Path
@@ -25,7 +26,7 @@ Copy-Item (Join-Path $my_root 'donate') $site1_dist -Recurse -Force
2526
# step.2 build docs to main site manual
2627
if ($axmol_src) {
2728
$build_docs_script = Join-Path $axmol_src 'tools/ci/build-docs.ps1'
28-
&$build_docs_script $site1_dist
29+
&$build_docs_script $site1_dist -min_ver $min_doc_ver
2930
}
3031

3132
# step.3 build wasm preview site

donate/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ <h3>Backers</h3>
190190
bingsoo, DUONG, thienphuoc
191191
</p>
192192

193-
<h3>Transactions</h3>
193+
<h3>Records</h3>
194194
<table>
195195
<thead>
196196
<tr>

0 commit comments

Comments
 (0)