Skip to content

fix ci.yml to deploy on pushes to deploy_site branch #1

fix ci.yml to deploy on pushes to deploy_site branch

fix ci.yml to deploy on pushes to deploy_site branch #1

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: 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