[GitHub] Fix Typedoc workflow (#6490)

* [GitHub] Fix Typedoc workflow

* Remove `--allow-empty`
This commit is contained in:
NightKev 2025-09-05 19:23:32 -07:00 committed by GitHub
parent 850fa6f6de
commit db8458fdb7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ jobs:
env:
docs-dir: ./pokerogue_docs
# Only push docs when running on pushes to main/beta
DRY_RUN: ${{github.event_name == 'push' && (github.ref_name == 'beta' || github.ref_name == 'main')}}
DRY_RUN: ${{github.event_name != 'push' || (github.ref_name != 'beta' && github.ref_name != 'main')}}
strategy:
fail-fast: false
@ -47,7 +47,7 @@ jobs:
with:
version: 10
- name: Setup Node 22.14.1
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: "pokerogue_docs/.nvmrc"
@ -79,5 +79,6 @@ jobs:
mkdir -p $GITHUB_REF_NAME
rm -rf $GITHUB_REF_NAME/*
cp -r /tmp/docs/. $GITHUB_REF_NAME
git commit --allow-empty -am "[skip ci] Deploy docs"
git push
git add $GITHUB_REF_NAME
git commit -m "[skip ci] Deploy docs"
git push