-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.07 KB
/
make_documentation.yml
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
name: Generate Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
cd {{cookiecutter.project_name}}
pip install -r requirements.txt
- name: Run main script
run: |
cd {{cookiecutter.project_name}}/docs/maker_documentation
python main.py
- name: Set up Git config
run: |
git config --global user.email "author_email"
git config --global user.name "author_name"
- name: Commit and push changes
run: |
cd {{cookiecutter.project_name}}/docs
git add md_docs/software-list.md
git add md_docs/soup-list.md
git commit -m 'Update documentation files' || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}