Skip to content

fix: Modify tiny-engine-portal workflowes #3

fix: Modify tiny-engine-portal workflowes

fix: Modify tiny-engine-portal workflowes #3

name: Build tiny-engine-portal
on:
pull_request:
types: [opened, reopened, synchronize, edited]
paths:
- 'packages/tiny-engine-portal/**'
workflow_dispatch: {}
permissions:
contents: read
pages: write
id-token: write
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: webfactory/ssh-agent@v0.8.0
with:

Check failure on line 21 in .github/workflows/build-tiny-engine-portal.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-tiny-engine-portal.yml

Invalid workflow file

You have an error in your yaml syntax on line 21
ssh-private-key: ${{ secrets.SUBMODULE_SSH_KEY }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 9
- name: Configure Git identity
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Install deps
run: pnpm -F tiny-engine-portal install --ignore-scripts --no-frozen-lockfile
- name: Ensure submodules are up-to-date (pull latest from their remote)
# 这一步会把子模块更新到各自远端的最新分支(通常是子模块配置的上游)
run: |
git submodule sync --recursive
git submodule update --init --recursive
# 拉取子模块的远端最新提交(合并到当前子模块工作树)
# 注意:这不会把变化提交回主仓库;仅用于构建时使用最新子模块内容
git submodule update --remote --merge --recursive
# 打印状态便于调试
git submodule status --recursive
- name: Build TinyEngine
run: pnpm build:engine