Skip to content

add i18n pulgin

add i18n pulgin #208

Workflow file for this run

name: publish site
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # for mkdocs-git-revision-date-localized-plugin
- uses: actions/setup-python@v4
with:
python-version: "3.10.9"
- run: python3 -m pip install -r requirements.txt
- run: mkdocs gh-deploy --force -b publishment
deployment-cloudfare-pages:
needs: build
runs-on: ubuntu-latest
environment: cloudfare-pages
permissions:
contents: read
deployments: write
steps:
- name: Checkout
uses: actions/checkout@v3
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: yangzhang