From f98c6acea6d5a75d14f6cc4d6b249cfa4be410b7 Mon Sep 17 00:00:00 2001 From: cqh963852 Date: Thu, 8 Oct 2026 13:40:44 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E6=96=B0=E5=A2=9E=20Gitea=20Actions=20?= =?UTF-8?q?=E6=89=93=E5=8C=85=E6=96=B0=E6=95=99=E7=A8=8B=E7=AB=99=EF=BC=88?= =?UTF-8?q?checkout=E2=86=92node20=E2=86=92corepack=20yarn4=E2=86=92build?= =?UTF-8?q?=20@stack/tutorial=E2=86=92=E4=B8=8A=E4=BC=A0=20dist=20?= =?UTF-8?q?=E4=BA=A7=E7=89=A9=EF=BC=89=EF=BC=9B=E7=A7=BB=E9=99=A4=E8=BF=87?= =?UTF-8?q?=E6=97=B6=20GitHub=20Pages=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=EF=BC=88=E6=97=A7=20Docusaurus=20=E7=AB=99=EF=BC=8CGitHub=20?= =?UTF-8?q?=E5=B7=B2=E8=BD=AC=E7=BA=AF=E5=A4=87=E4=BB=BD=E4=B8=8D=E5=BA=94?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E9=83=A8=E7=BD=B2=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-tutorial.yml | 36 ++++++++++++++++++++++ .github/workflows/deploy.yml | 46 ----------------------------- 2 files changed, 36 insertions(+), 46 deletions(-) create mode 100644 .gitea/workflows/build-tutorial.yml delete mode 100644 .github/workflows/deploy.yml diff --git a/.gitea/workflows/build-tutorial.yml b/.gitea/workflows/build-tutorial.yml new file mode 100644 index 0000000..f34a30e --- /dev/null +++ b/.gitea/workflows/build-tutorial.yml @@ -0,0 +1,36 @@ +name: Build Tutorial + +# 主仓库 gitea.idealjs.com/idealjs/stack 的 CI: +# 打包新教程站(apps/tutorial,Vite MPA,含设计系统四册页) +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +jobs: + build: + name: Build @stack/tutorial + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Enable corepack (yarn 4 via packageManager) + run: corepack enable + + - name: Install dependencies + run: yarn install --immutable + + - name: Build tutorial (Vite MPA 七页 + 设计系统四册) + run: yarn workspace @stack/tutorial build + + - name: Upload dist artifact + uses: actions/upload-artifact@v4 + with: + name: tutorial-dist + path: apps/tutorial/dist/ + retention-days: 14 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 0dcdabb..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Deploy to GitHub Pages - -on: - push: - branches: - - main - # Review gh actions docs if you want to further define triggers, paths, etc - # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on - -jobs: - build: - name: Build Docusaurus - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: yarn - - - name: Install dependencies - run: yarn install --immutable - - - name: Build website - run: yarn workspace stack-idealjs build - - name: Upload Build Artifact - uses: actions/upload-pages-artifact@v3 - with: - path: packages/stack-idealjs/build - - deploy: - name: Deploy to GitHub Pages - needs: build - permissions: - pages: write - id-token: write - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4