-
Notifications
You must be signed in to change notification settings - Fork 386
47 lines (44 loc) · 1.13 KB
/
site.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
41
42
43
44
45
46
47
name: 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