Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: 'Deploy'
on:

Check warning on line 3 in .github/workflows/deploy.yaml

View workflow job for this annotation

GitHub Actions / build

3:1 [truthy] truthy value should be one of [false, no, true, yes]
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.0.0
id: pages
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: site
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: Cloudflare Pages

Check failure on line 42 in .github/workflows/deploy.yaml

View workflow job for this annotation

GitHub Actions / build

42:47 [new-line-at-end-of-file] no new line character at the end of file
35 changes: 15 additions & 20 deletions .github/workflows/pr-close.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
name: pr-close
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json

name: 'PR Close - Deletion'
on:

Check warning on line 4 in .github/workflows/pr-close.yaml

View workflow job for this annotation

GitHub Actions / build

4:1 [truthy] truthy value should be one of [false, no, true, yes]
pull_request:
types:
- closed

permissions:
contents: write
branches:
- main

jobs:
cleanup:
deploy-delete:
permissions:
actions: read # Only required for private GitHub Repo

Check warning on line 14 in .github/workflows/pr-close.yaml

View workflow job for this annotation

GitHub Actions / build

14:21 [comments] too few spaces before comment
contents: read
deployments: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v6
- name: Deploy deletion Cloudflare Pages
uses: andykenward/github-actions-cloudflare-pages/delete@v2.3.2
with:
python-version: 3.12
cache: 'pip'
- name: Install Dependencies
run: |
pip install -r requirements.txt
- name: Setup Docs Deploy
run: |
git config --global user.name "Docs Deploy"
git config --global user.email "docs.deploy@example.co.uk"
- name: Build Docs Website
run: mike delete --push pr-${{ github.event.pull_request.number }}
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 25 in .github/workflows/pr-close.yaml

View workflow job for this annotation

GitHub Actions / build

25:52 [new-line-at-end-of-file] no new line character at the end of file
57 changes: 57 additions & 0 deletions .github/workflows/pr-preview-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# Trusted follow-up: runs in base-repo context so secrets and environments work (incl. fork PRs).
# andykenward/github-actions-cloudflare-pages only supports push/pull_request/workflow_dispatch,
# not workflow_run, so previews use wrangler directly (same pattern as Cloudflare docs).
name: PR Preview Deploy
on:

Check warning on line 6 in .github/workflows/pr-preview-deploy.yaml

View workflow job for this annotation

GitHub Actions / build

6:1 [truthy] truthy value should be one of [false, no, true, yes]
pull_request_target:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 5
environment: Cloudflare Pages
env:
PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }}
permissions:
contents: read
deployments: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name || github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
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
run: mkdocs build

# - name: Deploy preview to Cloudflare Pages
# id: pages
# uses: cloudflare/wrangler-action@v3
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
# command: >-
# pages deploy site
# --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}
# --branch=pr-${{ env.PR_NUMBER }}
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to Cloudflare Pages
uses: andykenward/github-actions-cloudflare-pages@v3.0.0
id: pages
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
cloudflare-account-id: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
cloudflare-project-name: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: site
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: Cloudflare Pages

Check failure on line 57 in .github/workflows/pr-preview-deploy.yaml

View workflow job for this annotation

GitHub Actions / build

57:47 [new-line-at-end-of-file] no new line character at the end of file
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: pr-check

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
# Runs without secrets (safe for fork PRs). PR Preview Deploy runs after this completes.
name: PR Preview Validate
on:

Check warning on line 4 in .github/workflows/pr-preview-validate.yaml

View workflow job for this annotation

GitHub Actions / build

4:1 [truthy] truthy value should be one of [false, no, true, yes]
pull_request:

permissions:
contents: read
branches:
- main

jobs:
pre-commit:
build:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- uses: actions/checkout@v3
with:
Expand Down
28 changes: 0 additions & 28 deletions .github/workflows/publish-main-releases.yaml

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ rosetta
.local
share
hooks/__pycache__/

# wrangler files
.wrangler
.dev.vars*
!.dev.vars.example
.env*
!.env.example
14 changes: 14 additions & 0 deletions wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "openshift-examples",
"compatibility_date": "2026-04-30",
"observability": {
"enabled": true
},
"assets": {
"directory": "site"
},
"compatibility_flags": [
"nodejs_compat"
]
}
Loading