Обновит ссылки для корректной работы на Github Pages (2) #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish static site via GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
build: | |
name: Build and deploy MkDocs static site | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v4 | |
- name: Python setup | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: MkDocs setup | |
run: pip install mkdocs | |
- name: Build | |
run: mkdocs build --clean | |
- name: Deploy | |
run: mkdocs gh-deploy --force | |
env: | |
CONFIG_FILE: mkdocs.yml | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |