feat: add weekly 50 #130
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: build | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
Rebuild-everything: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout # 将仓库内master分支的内容下载到工作目录 | |
uses: actions/checkout@v4 # 脚本来自 https://github.com/actions/checkout | |
with: | |
ref: main | |
fetch-depth: 0 | |
# Install packages | |
- run: pip install -r .requirements.txt | |
- run: mkdocs build --strict | |
# Generate CNAME File | |
- run: echo weekly.binlin.wang > CNAME | |
- run: echo weekly.binlin.wang > docs/CNAME | |
- uses: mhausenblas/mkdocs-deploy-gh-pages@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CUSTOM_DOMAIN: weekly.binlin.wang | |
CONFIG_FILE: mkdocs.yml | |
REQUIREMENTS: .requirements.txt |