-
Notifications
You must be signed in to change notification settings - Fork 509
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into MP-1323-cookies-tab-rework
- Loading branch information
Showing
31 changed files
with
840 additions
and
551 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ jobs: | |
git checkout main | ||
git status | ||
git checkout - | ||
git merge main --no-edit | ||
git merge main --no-edit || git merge --abort | ||
- uses: actions/checkout@v4 | ||
if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} | ||
|
@@ -151,6 +151,13 @@ jobs: | |
mv mdn/translated-content-de/files/de mdn/translated-content/files/ | ||
rm -rf mdn/translated-content-de | ||
- name: Clean and commit de | ||
if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} | ||
working-directory: mdn/translated-content | ||
run: | | ||
git add files/de | ||
git -c user.name='MDN' -c user.email='[email protected]' commit -m 'de' | ||
- uses: actions/checkout@v4 | ||
if: ${{ ! vars.SKIP_BUILD }} | ||
with: | ||
|
@@ -168,7 +175,8 @@ jobs: | |
if: ${{ ! vars.SKIP_BUILD }} | ||
run: yarn --frozen-lockfile | ||
env: | ||
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | ||
# Use a GITHUB_TOKEN to bypass rate limiting for ripgrep and rari. | ||
# See https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Python | ||
|
@@ -214,6 +222,13 @@ jobs: | |
CURRICULUM_ROOT: ${{ github.workspace }}/mdn/curriculum | ||
BASE_URL: "https://developer.allizom.org" | ||
|
||
# rari | ||
BUILD_OUT_ROOT: "client/build" | ||
GENERIC_CONTENT_ROOT: "copy" | ||
LIVE_SAMPLES_BASE_URL: https://live.mdnyalp.dev | ||
INTERACTIVE_EXAMPLES_BASE_URL: https://interactive-examples.mdn.allizom.net | ||
ADDITIONAL_LOCALES_FOR_GENERICS_AND_SPAS: de | ||
|
||
# The default for this environment variable is geared for writers | ||
# (aka. local development). Usually defaults are supposed to be for | ||
# secure production but this is an exception and default | ||
|
@@ -290,31 +305,14 @@ jobs: | |
echo "BLOG_ROOT=$BLOG_ROOT" | ||
# Build the ServiceWorker first | ||
yarn build:sw | ||
yarn build:prepare | ||
yarn tool sync-translated-content es fr ja ko pt-br ru zh-cn zh-tw | ||
# Build using one process per locale. | ||
# Note: We have 4 cores, but 9 processes is a reasonable number. | ||
for locale in en-us de es fr ja ko pt-br ru zh-cn zh-tw; do | ||
yarn build:docs --locale $locale 2>&1 | sed "s/^/[$locale] /" & | ||
pids+=($!) | ||
done | ||
for pid in "${pids[@]}"; do | ||
wait $pid | ||
done | ||
du -sh client/build | ||
# Build the blog | ||
yarn build:blog | ||
yarn build:client | ||
yarn build:ssr | ||
yarn tool build-robots-txt | ||
# Build the curriculum | ||
yarn build:curriculum | ||
yarn rari content sync-translated-content | ||
yarn rari git-history | ||
# Generate sitemap index file | ||
yarn build --sitemap-index | ||
yarn rari build --issues client/build/issues.json --templ-stats | ||
# SSR all pages | ||
yarn render:html | ||
|
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 |
---|---|---|
|
@@ -72,6 +72,26 @@ jobs: | |
# See matching warning for mdn/content checkout step | ||
fetch-depth: 0 | ||
|
||
- name: Checkout (translated-content-de) | ||
uses: actions/checkout@v4 | ||
if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} | ||
with: | ||
repository: mdn/translated-content-de | ||
path: mdn/translated-content-de | ||
|
||
- name: Move de into translated-content | ||
if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} | ||
run: | | ||
mv mdn/translated-content-de/files/de mdn/translated-content/files/ | ||
rm -rf mdn/translated-content-de | ||
- name: Clean and commit de | ||
if: ${{ ! vars.SKIP_BUILD || ! vars.SKIP_FUNCTION }} | ||
working-directory: mdn/translated-content | ||
run: | | ||
git add files/de | ||
git -c user.name='MDN' -c user.email='[email protected]' commit -m 'de' | ||
- uses: actions/checkout@v4 | ||
if: ${{ ! vars.SKIP_BUILD }} | ||
with: | ||
|
@@ -89,7 +109,8 @@ jobs: | |
if: ${{ ! vars.SKIP_BUILD }} | ||
run: yarn --frozen-lockfile | ||
env: | ||
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | ||
# Use a GITHUB_TOKEN to bypass rate limiting for ripgrep and rari. | ||
# See https://github.com/microsoft/vscode-ripgrep#github-api-limit-note | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Print information about build | ||
|
@@ -111,6 +132,13 @@ jobs: | |
CURRICULUM_ROOT: ${{ github.workspace }}/mdn/curriculum | ||
BASE_URL: "https://test.developer.allizom.org" | ||
|
||
# rari | ||
BUILD_OUT_ROOT: "client/build" | ||
GENERIC_CONTENT_ROOT: "copy" | ||
LIVE_SAMPLES_BASE_URL: https://live.test.mdnyalp.dev | ||
INTERACTIVE_EXAMPLES_BASE_URL: https://interactive-examples.mdn.allizom.net | ||
ADDITIONAL_LOCALES_FOR_GENERICS_AND_SPAS: de | ||
|
||
# The default for this environment variable is geared for writers | ||
# (aka. local development). Usually defaults are supposed to be for | ||
# secure production but this is an exception and default | ||
|
@@ -155,7 +183,7 @@ jobs: | |
REACT_APP_PLACEMENT_ENABLED: true | ||
|
||
# Playground | ||
REACT_APP_PLAYGROUND_BASE_HOST: play.test.mdn.allizom.net | ||
REACT_APP_PLAYGROUND_BASE_HOST: test.mdnyalp.dev | ||
|
||
# Observatory | ||
REACT_APP_OBSERVATORY_API_URL: https://observatory-api.mdn.allizom.net | ||
|
@@ -168,31 +196,14 @@ jobs: | |
echo "BLOG_ROOT=$BLOG_ROOT" | ||
# Build the ServiceWorker first | ||
yarn build:sw | ||
yarn build:prepare | ||
#yarn tool sync-translated-content | ||
# Build using one process per locale. | ||
# Note: We have 4 cores, but 9 processes is a reasonable number. | ||
for locale in en-us fr; do | ||
yarn build:docs --locale $locale 2>&1 | sed "s/^/[$locale] /" & | ||
pids+=($!) | ||
done | ||
for pid in "${pids[@]}"; do | ||
wait $pid | ||
done | ||
du -sh client/build | ||
# Build the blog | ||
yarn build:blog | ||
yarn build:client | ||
yarn build:ssr | ||
yarn tool build-robots-txt | ||
# Build the curriculum | ||
yarn build:curriculum | ||
yarn rari content sync-translated-content | ||
yarn rari git-history | ||
# Generate sitemap index file | ||
yarn build --sitemap-index | ||
yarn rari build --issues client/build/issues.json --templ-stats | ||
# SSR all pages | ||
yarn render:html | ||
|
@@ -241,6 +252,7 @@ jobs: | |
run: | | ||
npm ci | ||
npm run build-redirects | ||
npm run build-canonicals | ||
- name: Deploy Function | ||
if: ${{ ! vars.SKIP_FUNCTION }} | ||
|
Oops, something went wrong.