Files
chat-one-web/.gitea/workflows/ci.yml
alboped 017919f6bc
Some checks failed
CI / build (push) Failing after 0s
ci: ci使用公共工作流;
2026-04-12 01:35:32 +08:00

33 lines
994 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.
# 公共工作流https://git.alboped.com/platform/workflow/src/branch/main/ci/web-spa-deploy.yml
#
# 本仓库「工作流 → 变量」DEPLOY_PATH、DEPLOY_HOST、DEPLOY_USER
# 本仓库「工作流 → 密钥」SSH_PRIVATE_KEYsecrets: inherit
#
# 若 uses 无法解析 ci/ 下工作流,请在 platform/workflow 仓库中把文件放到
# .gitea/workflows/web-spa-deploy.yml
# 并把下面 uses 改为:
# platform/workflow/.gitea/workflows/web-spa-deploy.yml@main
#
# 若 platform/workflow 为私有仓库且拉取失败,可使用带 token 的绝对地址(见 Gitea 文档)。
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
uses: platform/workflow/ci/web-spa-deploy.yml@main
with:
node_version: "22.14.0"
yarn_version: "1.22.22"
project_dir: "chat-one-web"
secrets: inherit