Files
plugin-library/.gitea/workflows/.gitlab-ci.yml
stary ae87bd7d2c
Some checks failed
Plugin Library CI / publish (00.ARMazTools) (push) Has been cancelled
Plugin Library CI / publish (00.BuildOriginality) (push) Has been cancelled
Plugin Library CI / publish (00.StaryEvo) (push) Has been cancelled
Plugin Library CI / publish (00.StaryEvoTools) (push) Has been cancelled
Plugin Library CI / publish (01.HybridCLR) (push) Has been cancelled
Plugin Library CI / publish (02.InformationSave) (push) Has been cancelled
Plugin Library CI / publish (03.YooAsset) (push) Has been cancelled
Plugin Library CI / publish (04.AudioCore) (push) Has been cancelled
Plugin Library CI / publish (05.TableTextConversion) (push) Has been cancelled
Plugin Library CI / publish (06.UIFarme) (push) Has been cancelled
Plugin Library CI / publish (07.RKTools) (push) Has been cancelled
Plugin Library CI / publish (08.UniTask) (push) Has been cancelled
Plugin Library CI / publish (09.CodeChecker) (push) Has been cancelled
Plugin Library CI / publish (10.StoryEditor) (push) Has been cancelled
Plugin Library CI / publish (10.XNode) (push) Has been cancelled
Plugin Library CI / publish (11.PointCloudTools) (push) Has been cancelled
11
2026-04-01 21:00:01 +08:00

71 lines
1.8 KiB
YAML

name: Plugin Library CI
on:
push:
branches: [master, main]
workflow_dispatch: # 支持手动触发
env:
SERVER_HOST: ${{ secrets.SERVER_HOST }}
AuthToken: ${{ secrets.AUTH_TOKEN }}
jobs:
# 定义所有模块矩阵
publish:
#runs-on: plugin # 对应你的 GitLab runner tag
container:
image: node:13.11.0
strategy:
fail-fast: false
matrix:
module:
- 00.StaryEvo
- 00.StaryEvoTools
- 00.BuildOriginality
- 00.ARMazTools
- 01.HybridCLR
- 02.InformationSave
- 03.YooAsset
- 04.AudioCore
- 05.TableTextConversion
- 06.UIFarme
- 07.RKTools
- 08.UniTask
- 09.CodeChecker
- 10.StoryEditor
- 10.XNode
- 11.PointCloudTools
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
run: |
ln -sf /srv/node-v13.11.0/bin/node /usr/bin/node
ln -sf /srv/node-v13.11.0/bin/npm /usr/bin/npm
node -v
- name: Publish ${{ matrix.module }}
working-directory: Assets/${{ matrix.module }}
run: |
echo "开始发布 ${{ matrix.module }}"
# 获取当前版本
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "当前版本: $CURRENT_VERSION"
# 配置 npm registry
echo "registry=http://${SERVER_HOST}/npm" > .npmrc
echo "//${SERVER_HOST}/:_authToken=${AuthToken}" >> .npmrc
# 发布
npm publish || echo "发布失败,继续执行"
echo "${{ matrix.module }} 构建完成"
- name: Complete
if: always()
run: echo "====== ${{ matrix.module }} 发布完成 ========="