Skip to content

add touch .nojekyll into docdeploy.yml #28

add touch .nojekyll into docdeploy.yml

add touch .nojekyll into docdeploy.yml #28

Workflow file for this run

# Min Xu Copyright 2024
# deploy my mkdocs site to the github page
name: build and deploy
on:
push:
branches:
- master
jobs:
build-deploy-mkdocs:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/[email protected]
with:
fetch-depth: 0
- name: setup-python-env
uses: actions/[email protected]
with:
python-version: '3.12'
cache: pip
cache-dependency-path: requirements.txt
- name: build-cache
uses: actions/cache/restore@v4
with:
key: mx-mkdocs-${{ hashfiles('.cache/**') }}
path: .cache
restore-keys: |
mx-mkdocs-
- name: install-python-deps
run: pip install -r requirements.txt
- name: pre-processing
run: python src/bibtex2markdown.py
- name: build-docs
run: |
mkdocs build --verbose --clean
mkdocs --version
touch ./site/.nojekyll
- name: deploy-gh-page
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./site/
- name: save_cache
uses: actions/cache/save@v4
with:
key: mx-mkdocs-${{ hashfiles('.cache/**') }}
path: .cache