-
Notifications
You must be signed in to change notification settings - Fork 97
42 lines (39 loc) · 1.18 KB
/
deploy.yaml
File metadata and controls
42 lines (39 loc) · 1.18 KB
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'Deploy'
on:
push:
branches:
- main
jobs:
deploy:
permissions:
# actions: read # Only required for private GitHub Repo
contents: read
deployments: write
pull-requests: write
runs-on: ubuntu-latest
environment: Cloudflare Pages
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: 3.12
cache: 'pip'
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Build Docs Website
run: mkdocs build
- name: Deploy to Cloudflare Pages
uses: andykenward/github-actions-cloudflare-pages@v3.5.0
id: pages
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare-account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: site
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: Cloudflare Pages