-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.54 KB
/
push-docs.yml
File metadata and controls
63 lines (54 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Synchronize Docs
on:
push:
branches:
- main
paths:
- "docs/**"
- "packages/ecs-lib/docs/**"
- "packages/ecs-lib/wasm/**"
workflow_dispatch:
jobs:
synchronize:
runs-on: ubuntu-latest
steps:
- name: Checkout engine
uses: actions/checkout@v6
with:
path: engine
- name: Checkout docs
uses: actions/checkout@v6
with:
path: docs
repository: nanoforge-dev/docs
token: ${{ secrets.ACTIONS_KEY }}
- name: Install Node.js
uses: actions/setup-node@v6
with:
node-version: 25
package-manager-cache: false
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v5.0.0
name: Install pnpm
with:
run_install: false
- name: setup git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "username@users.noreply.github.com"
- name: install doxygen
uses: ssciwr/doxygen-install@v2
- name: install deps
run: cd engine && pnpm i
- name: synchronize docs
run: |
cd engine
./scripts/build_docs.sh
cd ..
rm docs/engine -rf
mkdir -p docs/engine
cp -r engine/docs/* docs/engine
cd docs
git add . || echo "No changes to add"
git commit -m "chore(engine): updating docs" || echo "No changes to commit"
git push origin main || echo "No changes to push"