Skip to content

update ci.yml to deploy with force #3

update ci.yml to deploy with force

update ci.yml to deploy with force #3

Workflow file for this run

name: Deploy MkDocs
on:
push:
branches:
- deploy_site # Or your default branch
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_docs.txt
- name: Build and Deploy to GitHub Pages
run: mkdocs gh-deploy --force
# - name: Deploy to GitHub Pages
# uses: peaceiris/actions-gh-pages@v4
# # Using the depol
# if: github.ref == 'refs/heads/deploy_site'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./docs