-
-
Notifications
You must be signed in to change notification settings - Fork 53
57 lines (46 loc) · 1.25 KB
/
docs.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Docs CI/CD
on:
push:
tags: [ v* ]
workflow_dispatch:
defaults:
run:
working-directory: docs
shell: bash
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure cache
run: echo "CACHE_ID=$(date --utc '+%Y-%V')" >> $GITHUB_ENV
- name: Configure cache
uses: actions/cache@v4
with:
path: ./docs/.cache
key: mkdocs-${{ env.CACHE_ID }}
restore-keys: mkdocs-
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
- name: Install dependencies
run: pip install -r requirements.txt
- name: Build the documentation
run: mkdocs build
- name: Publish the documentation
uses: cloudflare/pages-action@v1
with:
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
projectName: pwasforfirefox
workingDirectory: docs
directory: dist
branch: main