From 127b21f80e2cdad8179850362d54c25fd65e8f9b Mon Sep 17 00:00:00 2001 From: henz Date: Mon, 13 Apr 2026 15:50:12 +0800 Subject: [PATCH] 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 --- .github/workflows/conductor-deploy.yml | 46 ++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/conductor-deploy.yml diff --git a/.github/workflows/conductor-deploy.yml b/.github/workflows/conductor-deploy.yml new file mode 100644 index 0000000000..69c410b70b --- /dev/null +++ b/.github/workflows/conductor-deploy.yml @@ -0,0 +1,46 @@ +name: Deploy to modules-conductor + +on: + push: + branches: + - conductor-migration + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 🛎️ + uses: actions/checkout@v6 + with: + submodules: recursive + + - name: Enable Corepack + run: corepack enable + + - name: Use Node.js 💻 + uses: actions/setup-node@v6 + with: + node-version-file: .node-version + cache: yarn + + - name: Install Dependencies 📦 + run: yarn install --immutable + + - name: Build Modules 🔧 + run: yarn workspaces foreach -ptW --from "./src/{bundles,tabs}/*" run build + + - name: Build Manifest + run: yarn buildtools manifest + + - name: Build All Docs + run: yarn build:docs + + - name: include java json + run: cp -r src/java build + + - name: Deploy 🚀 + uses: peaceiris/actions-gh-pages@v4 + with: + deploy_key: ${{ secrets.CONDUCTOR_DEPLOY_KEY }} + external_repository: source-academy/modules-conductor + publish_dir: ./build