Files
gitea_actions/.gitea/workflows/build.yml
Workflow config file is invalid. Please check your config file: EOF
编码猿 e05fc3d400
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 18s
ssh
2025-10-05 02:40:59 +08:00

43 lines
1.0 KiB
YAML

# name: 构建项目
# run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
# # 2. 触发条件 (on)
# on: [push]
# # 3. 作业定义 (jobs)
# jobs:
# 构建:
# # 4. 运行器选择 (runs-on)
# runs-on: ubuntu-latest
# # 5. 步骤序列 (steps)
# steps:
# # 步骤 1: 检出代码
# - name: 检出代码
# uses: https://gitea.com/actions/checkout@v4
# - name: 显示目录
# run: ls -la
# # 步骤 2: 设置 Node.js 环境
# - name: 设置 Node.js 环境
# uses: https://gitea.com/actions/setup-node@v4
# with:
# node-version: 22
# cache: 'npm'
# # 步骤 3: 安装依赖
# - name: 安装依赖
# run: npm ci
# # 步骤 4: 执行打包命令
# - name: 执行Build构建
# run: npm run build
# # 步骤 5: 上传打包产物
# - name: 上传构建产物
# uses: https://gitea.com/actions/upload-artifact@v3
# with:
# name: dist
# path: dist/