Skip to content

fix(cname): t1k.chaitin.com => pages.chaitin.com #7

fix(cname): t1k.chaitin.com => pages.chaitin.com

fix(cname): t1k.chaitin.com => pages.chaitin.com #7

Workflow file for this run

name: ci
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'recursive'
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Cache dependencies
run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- name: Restore cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Install dependencies
run: pip install mkdocs-material mkdocs-minify-plugin
- name: Deploy
run: |
mkdir -p overrides/assets/external/stylesheets && cp -r mkdocs-material/material/overrides/assets/stylesheets/* overrides/assets/external/stylesheets/
mkdocs build -f config/en/mkdocs.yml && mkdocs build -f config/zh/mkdocs.yml
ghp-import -m "github-actions[bot] deploy (${GITHUB_SHA:0:7})" --push --force generated