Skip to content

Commit

Permalink
Merge branch 'MP-739-curriculum-builder' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Jan 31, 2024
2 parents ec54441 + e8d7938 commit eb6dd28
Show file tree
Hide file tree
Showing 37 changed files with 1,525 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/stage-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
lfs: true
token: ${{ secrets.MDN_STUDIO_PAT }}

- uses: actions/checkout@v4
if: ${{ ! vars.SKIP_BUILD }}
with:
repository: mdn/curriculum
path: mdn/curriculum

# Our usecase is a bit complicated. When the cron schedule runs this workflow,
# we rely on the env vars defined at the top of the file. But if it's a manual
# trigger we rely on the inputs and only the inputs. That way, the user can
Expand Down Expand Up @@ -169,6 +175,7 @@ jobs:
CONTENT_TRANSLATED_ROOT: ${{ github.workspace }}/mdn/translated-content/files
CONTRIBUTOR_SPOTLIGHT_ROOT: ${{ github.workspace }}/mdn/mdn-contributor-spotlight/contributors
BLOG_ROOT: ${{ github.workspace }}/mdn/mdn-studio/content/posts
CURRICULUM_ROOT: ${{ github.workspace }}/mdn/curriculum
BASE_URL: "https://developer.allizom.org"

# The default for this environment variable is geared for writers
Expand Down Expand Up @@ -271,6 +278,9 @@ jobs:
# Build the blog
yarn build:blog
# Build the curriculum
yarn build:curriculum
# Generate whatsdeployed files.
yarn tool whatsdeployed --output client/build/_whatsdeployed/code.json
yarn tool whatsdeployed $CONTENT_ROOT --output client/build/_whatsdeployed/content.json
Expand Down
4 changes: 4 additions & 0 deletions build/build-curriculum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node
import { buildCurriculum } from "./curriculum.js";

buildCurriculum({ verbose: true });
Loading

0 comments on commit eb6dd28

Please sign in to comment.