PUSH NOTE : 2-SAT.md #122
Workflow file for this run
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: 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 | ||
- 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 |