Skip to content

Commit 922aeca

Browse files
committed
Fix ci
1 parent cdaa7a9 commit 922aeca

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919
default: '2.3'
2020
# Input has to be provided for the workflow to run
2121
required: true
22+
env:
23+
DEFAULT_MIN_DOC_VER: '2.3'
2224
jobs:
2325
build:
2426
runs-on: ubuntu-latest
@@ -46,7 +48,9 @@ jobs:
4648
ls -r tmp/wasm
4749
git clone https://github.com/axmolengine/axmol.git tmp/axmol-src
4850
git -C tmp/axmol-src checkout dev
49-
./build.ps1 tmp/axmol-src tmp/wasm -min_doc_ver ${{ github.event.inputs.min_doc_ver }}
51+
$min_doc_ver = '${{ github.event.inputs.min_doc_ver }}'
52+
if (!$min_doc_ver) { $min_doc_ver = '${{ env.DEFAULT_MIN_DOC_VER }}'}
53+
./build.ps1 tmp/axmol-src tmp/wasm -min_doc_ver $min_doc_ver
5054
5155
# Deploy HTML site to GitHub Pages
5256
- name: GH Pages Deployment

0 commit comments

Comments
 (0)