Skip to content

fix(publish_docs.yml): fix the bug in the publish_docs pipeline unabl… #3

fix(publish_docs.yml): fix the bug in the publish_docs pipeline unabl…

fix(publish_docs.yml): fix the bug in the publish_docs pipeline unabl… #3

Workflow file for this run

name: Publish documentation
on:
push:
branches:
- master
jobs:
publish-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
fetch-depth: 0
- name: Pull latest changes
run: |
git pull origin master
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install -U mkdocs mkdocs-material
- name: Build docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python -m mkdocs build
- name: Push doc to Github Page
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public