Skip to content

CLDR-17803 docs/site: publish to CloudFlare, config updates #2

CLDR-17803 docs/site: publish to CloudFlare, config updates

CLDR-17803 docs/site: publish to CloudFlare, config updates #2

Workflow file for this run

name: CLDR Site
permissions:
pages: write
deployments: write
id-token: write
on:
pull_request:
paths:
- "tools/scripts/tr-archive/**"
- "docs/**"
- '.github/workflows/gh-pages.yml'
push:
branches:
- main
- "maint/maint-*"
tags:
- "release-*"
# Only run if docs change.
paths:
- "tools/scripts/tr-archive/**"
- "docs/**"
- '.github/workflows/gh-pages.yml'
jobs:
cloudflare:
runs-on: ubuntu-latest
environment: cloudflare
steps:
- uses: actions/checkout@v4
with:
lfs: false
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Setup Jekyll
run: 'gem install bundler jekyll kramdown-parser-gfm webrick'
- name: Build cldr.pages.dev
run: 'cd docs/site && jekyll build'
- name: Deploy cldr.pages.dev
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./_site --project-name=cldr