Skip to content

Commit 127b21f

Browse files
martin-henzclaude
andcommitted
Add CI/CD workflow to deploy conductor modules to modules-conductor repo
Deploys build artifacts from the conductor-migration branch to source-academy/modules-conductor via GitHub Pages, allowing the conductor version of modules to coexist with the current deployment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0d12e04 commit 127b21f

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deploy to modules-conductor
2+
3+
on:
4+
push:
5+
branches:
6+
- conductor-migration
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout 🛎️
13+
uses: actions/checkout@v6
14+
with:
15+
submodules: recursive
16+
17+
- name: Enable Corepack
18+
run: corepack enable
19+
20+
- name: Use Node.js 💻
21+
uses: actions/setup-node@v6
22+
with:
23+
node-version-file: .node-version
24+
cache: yarn
25+
26+
- name: Install Dependencies 📦
27+
run: yarn install --immutable
28+
29+
- name: Build Modules 🔧
30+
run: yarn workspaces foreach -ptW --from "./src/{bundles,tabs}/*" run build
31+
32+
- name: Build Manifest
33+
run: yarn buildtools manifest
34+
35+
- name: Build All Docs
36+
run: yarn build:docs
37+
38+
- name: include java json
39+
run: cp -r src/java build
40+
41+
- name: Deploy 🚀
42+
uses: peaceiris/actions-gh-pages@v4
43+
with:
44+
deploy_key: ${{ secrets.CONDUCTOR_DEPLOY_KEY }}
45+
external_repository: source-academy/modules-conductor
46+
publish_dir: ./build

0 commit comments

Comments
 (0)