fengling-console/.gitea/workflows/build.yml
Workflow config file is invalid. Please check your config file: EOF
movingsam c50615d8d1 refactor: 将项目文件迁移到 src 目录并创建 slnx 解决方案
- 将 Controllers, Services, Models, Properties 等目录移至 src/ 下
- 创建 Fengling.Console.slnx Rider 解决方案文件
- 更新 csproj 中的项目引用路径
- 修复 CI/CD 配置:
  - build.yml: 更新项目路径为 src/Fengling.Console.csproj
  - docker.yml: 添加 Dockerfile 路径指向 src/Dockerfile
  - Dockerfile: 修复 COPY 路径以匹配新的目录结构

Closes #重构项目结构
2026-02-28 18:04:16 +08:00

39 lines
1.1 KiB
YAML

# HR|name: Build
# PQ|on:
# NX| push:
# YK| branches: [main, develop]
# TS| pull_request:
# QN| branches: [main, develop]
# JR|env:
# XQ| DOTNET_VERSION: '10.0.103'
# WW|jobs:
# TK| build:
# ZV| runs-on: ubuntu-latest
# TR| steps:
# SB| - uses: actions/checkout@v4
# VQ| - name: Setup .NET SDK
# PZ| uses: actions/setup-dotnet@v4
# RJ| with:
# KK| dotnet-version: ${{ env.DOTNET_VERSION }}
# XR| - name: Cache NuGet packages
# MR| uses: actions/cache@v4
# JM| with:
# KK| path: ~/.nuget/packages
# QR| key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
# JZ| restore-keys: |
# HQ| ${{ runner.os }}-nuget-
# TW| - name: Restore dependencies
# YJ| run: dotnet restore src/Fengling.Console.csproj
# HJ| - name: Build
# ZJ| run: dotnet build src/Fengling.Console.csproj --configuration Release --no-restore
# VW| - name: Publish
# JX| run: dotnet publish src/Fengling.Console.csproj --configuration Release --no-build -o ./publish