File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Generate Documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - autogenerate-docs
7
+
8
+ jobs :
9
+ generate-docs :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v4
15
+
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v5
18
+ with :
19
+ python-version : ' 3.8'
20
+
21
+ - name : Install dependencies
22
+ run : |
23
+ cd docs/build
24
+ pip install -r requirements.txt
25
+
26
+ - name : Generate documentation
27
+ run : |
28
+ cd docs/build
29
+ python build.py
30
+
31
+ # - name: Configure Git
32
+ # run: |
33
+ # git config --global user.name 'github-actions'
34
+ # git config --global user.email 'github-actions@github.com'
35
+
36
+ # - name: Commit and push changes
37
+ # run: |
38
+ # git checkout -b update-docs
39
+ # git add ../api-reference
40
+ # git commit -m "Update documentation"
41
+ # git push -u origin update-docs
42
+
43
+ # - name: Create Pull Request
44
+ # uses: peter-evans/create-pull-request@v6
45
+ # with:
46
+ # token: ${{ secrets.GITHUB_TOKEN }}
47
+ # branch: update-docs
48
+ # title: 'Update Documentation'
49
+ # body: 'This PR updates the documentation with the latest changes.'
50
+ # labels: 'documentation'
You can’t perform that action at this time.
0 commit comments