Skip to content

PUSH NOTE : 逆元.md #114

PUSH NOTE : 逆元.md

PUSH NOTE : 逆元.md #114

name: Deploy MkDocs To gh-pages
env:
TZ: Asia/Shanghai
on:
push:
branches:
- main # the branch where you store the mkdocs source files
permissions:
actions: write
checks: write
contents: write
deployments: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
= name: Dependencies
run: sudo apt-get install -y pngquant

Check failure on line 22 in .github/workflows/Deploy_to_gh-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/Deploy_to_gh-pages.yml

Invalid workflow file

You have an error in your yaml syntax on line 22
- name: Checkout
uses: actions/checkout@v3 # this action clones your repository
with:
fetch-depth: 0 # 默认为1,表示只拉去最新commit信息,会导致当前文件显示的创建时间、更新时间都为commit的时间
- name: Set up Python
uses: actions/setup-python@v4 # this action sets up a python environment
with:
python-version: "3.11"
- name: Deploy
uses: mhausenblas/mkdocs-deploy-gh-pages@master # this action builds and deploys your mkdocs site to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this is a token provided by GitHub Actions