-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (34 loc) · 1.07 KB
/
documentation.yml
File metadata and controls
35 lines (34 loc) · 1.07 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
name: Documentation Generation
run-name: Generating documentation...
on:
push:
branches: master
jobs:
Generate-Documentation:
runs-on: ubuntu-latest
env:
github_sha: $GITHUB_SHA
workspace: $GITHUB_WORKSPACE
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: main
- name: Generating documentation
run: |
cd ${{env.workspace}}/main/stack-control-doc
cargo run -- ${{env.workspace}}/documentation.json
cd ${{env.workspace}}
- name: Loading documentation branch
uses: actions/checkout@v4
with:
ref: 'gen-documentation'
path: doc
- name: Publishing documentation
run: |
cd ${{env.workspace}}/doc
cp ${{env.workspace}}/documentation.json ./documentation_v1.json
git config --global user.name 'CREAsTIVE'
git config --global user.email 'CREAsTIVE@users.noreply.github.com'
git commit -am "docs: documentation update for ${{env.github_sha}}"
git push