From 4dcac07304c825e24c883e93199e26404f7ff136 Mon Sep 17 00:00:00 2001 From: Remy Gwaramadze Date: Fri, 19 Jul 2024 17:28:29 +0200 Subject: [PATCH] WIP --- .github/workflows/docs.yml | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..0b95b9677 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,50 @@ +name: Generate Documentation + +on: + push: + branches: + - autogenerate-docs + +jobs: + generate-docs: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + cd docs/build + pip install -r requirements.txt + + - name: Generate documentation + run: | + # Replace with your documentation generation script + python build.py + + # - name: Configure Git + # run: | + # git config --global user.name 'github-actions' + # git config --global user.email 'github-actions@github.com' + + # - name: Commit and push changes + # run: | + # git checkout -b update-docs + # git add ../api-reference + # git commit -m "Update documentation" + # git push -u origin update-docs + + # - name: Create Pull Request + # uses: peter-evans/create-pull-request@v6 + # with: + # token: ${{ secrets.GITHUB_TOKEN }} + # branch: update-docs + # title: 'Update Documentation' + # body: 'This PR updates the documentation with the latest changes.' + # labels: 'documentation'