-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
724 changed files
with
90,780 additions
and
92,721 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
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,15 @@ | ||
# .github/workflows/auto-author-assign.yml | ||
name: Auto Author Assign | ||
|
||
on: | ||
pull_request_target: | ||
types: [ opened, reopened ] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: toshimaru/[email protected] |
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
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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
|
||
name: Publish to gh-pages | ||
|
||
permissions: | ||
pages: write | ||
deployments: write | ||
id-token: write | ||
|
||
on: | ||
push: | ||
branches: | ||
|
@@ -20,7 +26,7 @@ jobs: | |
with: | ||
lfs: false | ||
- name: Cache local npm repository | ||
uses: actions/cache@v3 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-nodetr-${{ hashFiles('tools/scripts/tr-archive/package-lock.json') }} | ||
|
@@ -32,9 +38,9 @@ jobs: | |
# Note: will update ToC if out of date | ||
run: 'cd tools/scripts/tr-archive/ && npm ci && npm run build' | ||
- name: Run Kbd Charts | ||
run: 'cd docs/charts/keyboard && npm ci && npm run build' | ||
run: 'cd docs/charts/keyboards && npm ci && npm run build' | ||
- name: Upload tr35.zip | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: tr35-spec | ||
path: tools/scripts/tr-archive/tr35.zip | ||
|
@@ -43,7 +49,7 @@ jobs: | |
run: 'cd tools/scripts/tr-archive/ && npm run extract-link-targets || (echo Warning, please fix these ; true)' | ||
- name: Lint Markdown | ||
# Warn, don't fail yet | ||
run: npx markdownlint-cli *.md {specs,docs}/*.md $(find .github -name '*.md') || (echo Warning, please fix these ; true) | ||
run: npx markdownlint-cli *.md {specs,docs}/*.md || (echo Warning, please fix these ; true) | ||
- name: Note any changes | ||
run: git status ; git diff | ||
- uses: ruby/setup-ruby@v1 | ||
|
@@ -53,22 +59,16 @@ jobs: | |
- name: Build Jekyll part of the site | ||
run: | | ||
gem install bundler github-pages kramdown-parser-gfm # should pull in jekyll, etc. | ||
jekyll build -s docs -d _site | ||
cd docs && github-pages build && mkdir -vp ../_site/ldml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Rearrange stuff | ||
run: 'cp -vr tools/scripts/tr-archive/dist/* ./_site/ldml/ && cp tools/scripts/tr-archive/reports-v2.css ./_site/' | ||
- name: Deploy to GitHub Pages (main) | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: Cecilapp/GitHub-Pages-deploy@v3 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# email: [email protected] | ||
build_dir: _site # optional | ||
branch: gh-pages # optional | ||
# cname: domain.tld # optional | ||
# jekyll: no # optional | ||
commit_message: CLDR-00000 Automated Build of Pages # optional | ||
uses: actions/upload-pages-artifact@v2 | ||
- name: Deploy to Smoketest | ||
if: github.repository == 'unicode-org/cldr' | ||
shell: bash | ||
env: | ||
RSA_KEY_CCC: ${{ secrets.RSA_KEY_CCC }} | ||
|
@@ -86,6 +86,16 @@ jobs: | |
rsync -cav --delete-after -e "ssh -o UserKnownHostsFile=${HOME}/.knownhosts -i ${HOME}/.key -p ${CCC_PORT}" ./_site/ ${CCC_USER}@${CCC_HOST}:spec/$(basename ${GITHUB_REF_NAME})/ | ||
echo "::endgroup::" | ||
echo "Now go to https://cldr-smoke.unicode.org/spec/"$(basename ${GITHUB_REF_NAME}) | ||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{steps.deployment.outputs.page_url}} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
|
||
# only run one of these at a time | ||
concurrency: | ||
|
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
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
Oops, something went wrong.