Files
stack/.gitea/workflows/build-tutorial.yml
T

35 lines
941 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Build Tutorial
# 主仓库 gitea.idealjs.com/idealjs/stack 的 CI:
# 打包新教程站(apps/tutorial,Vite MPA,含设计系统四册页)
# 注:runner 默认容器(Alpine)无 node,JS 动作跑不起来——job 固定 node 容器
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build:
name: Build @stack/tutorial
runs-on: ubuntu-latest
container: node:20-alpine
steps:
- uses: actions/checkout@v4
- 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