From 2ed0ea63e67514209e29482308c2a24f7c2a7d51 Mon Sep 17 00:00:00 2001 From: admin Date: Mon, 30 Nov 2026 14:39:24 +0100 Subject: [PATCH] CI: build on Gitea instead of deploying to GitHub Pages The Pages workflow can never run again (the GitHub account is suspended). CI now checks that the app and the embeddable bundle build from a clean install on Node 22; once main is green, the kaskada repo bumps Galena's ReaderJS pin. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 17 +++++++++++++ .github/workflows/deploy.yml | 46 ------------------------------------ 2 files changed, 17 insertions(+), 46 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..2e24b69 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,17 @@ +name: CI +# Build check: the app and the embeddable bundle build from a clean install (Node 22: Vite 8 needs +# ^20.19 or >=22.12). Galena pins a ReaderJS commit; the kaskada repo bumps that pin once main is green. +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v5 + with: + node-version: 22 + cache: npm + - run: npm ci + - run: npm run build + - run: npm run build:embed diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 6cba7d7..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Deploy to GitHub Pages - -on: - push: - branches: [main] - workflow_dispatch: - -permissions: - contents: read - pages: write - id-token: write - -concurrency: - group: pages - cancel-in-progress: false - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: npm - - - run: npm ci - - - run: npx vite build --base /ReaderJS/ - - - uses: actions/configure-pages@v5 - - - uses: actions/upload-pages-artifact@v3 - with: - path: dist - - deploy: - needs: build - runs-on: ubuntu-latest - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - steps: - - id: deployment - uses: actions/deploy-pages@v4