-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (40 loc) · 1.02 KB
/
issueMySite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: publish site
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
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: 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@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: yangzhang