Skip to content

Commit a3a733d

Browse files
authored
Auto-Generate Docs when changes detected (#2138)
1 parent feac566 commit a3a733d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/generate-docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Auto Build Docs
2+
3+
on:
4+
push:
5+
paths:
6+
- 'docs.openc3.com/**'
7+
branches:
8+
- main
9+
10+
jobs:
11+
build-and-commit:
12+
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0 # Required to push commits
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 22
25+
26+
- name: Install dependencies
27+
run: yarn
28+
working-directory: docs.openc3.com
29+
30+
- name: Build docs
31+
run: yarn build
32+
working-directory: docs.openc3.com
33+
34+
- uses: stefanzweifel/git-auto-commit-action@v5
35+
with:
36+
commit_message: Automated Doc Build Change

0 commit comments

Comments
 (0)