Skip to content

Update make_documentation.yml #6

Update make_documentation.yml

Update make_documentation.yml #6

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 "tuo.email@example.com"
git config --global user.name "Il Tuo Nome"
- 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 }}