Skip to content

update xiaoxia

update xiaoxia #337

Workflow file for this run

name: publish site
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
environment: mkdocs-build
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # for mkdocs-git-revision-date-localized-plugin
- uses: actions/setup-python@v5
with:
python-version: "3.11.5"
- run: python3 -m pip install -r requirements.txt
- run: PLUGIN="./plugins_full.yml" OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} DASHSCOPE_API_KEY=${{ secrets.DASHSCOPE_API_KEY }} mkdocs gh-deploy --force -b publishment
deployment-cloudflare-pages:
needs: build
runs-on: ubuntu-latest
environment: cloudflare-pages
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: publishment
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNTID }}
projectName: githubio
directory: '.'
branch: main