-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLDR-17803 docs/site: give up on docker for GH, split out site.yml wo…
…rkflow
- Loading branch information
Showing
3 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
FROM jekyll/jekyll | ||
FROM jekyll/jekyll:4.2.2 | ||
RUN gem install bundler github-pages kramdown-parser-gfm webrick |