Skip to content

Updated the package version #16

Updated the package version

Updated the package version #16

Workflow file for this run

name: Update Docs
on:
push:
branches:
- 'main'
jobs:
update-docs:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up Git configuration
run: |
git config --global user.email "[email protected]"
git config --global user.name "Ali Khalili Tazehkandgheshlagh"
- name: Checkout gh-pages branch
run: |
git fetch origin gh-pages
git checkout gh-pages
git pull origin gh-pages
- name: Merge main into gh-pages
run: |
git checkout gh-pages
git merge origin/main --allow-unrelated-histories -X theirs --no-edit || true
- name: Set up Python 3.12.8
uses: actions/setup-python@v3
with:
python-version: 3.12.8
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install sphinx-rtd-theme
- name: Build documentation
run: |
make build
- name: Push changes to gh-pages
run: |
git add -A
git commit -m "Update docs"
git push origin gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}