XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.ServerInteractive

[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension.NetCore.ServerInteractive

完善中文文档,升级依赖并优化CI流程

- 新增并重命名为 `README.zh-CN.md`,补充详细中文文档 - `README.md` 优化语言切换及中文链接 - 升级 `System.Management`、`XFEExtension.NetCore.AutoConfig`、`XFEExtension.NetCore.XUnit` 等依赖 - `.csproj` 文件同步调整中文文档打包路径 - GitHub Actions 工作流切换至 `windows-latest`,NuGet 推送步骤更健壮,Release 步骤优化 - 提升文档可读性、项目可维护性与自动化水平

024ce12
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

6 个文件 +33 -16
Modified .github/workflows/publish-packages.yml +25 -8
@@ -7,7 +7,7 @@ on:
7 7 workflow_dispatch:
8 8 inputs:
9 9 version:
10 description: Package version to publish, for example 3.0.9
10 description: Package version to publish, for example 1.0.0
11 11 required: true
12 12 type: string
13 13 skip_nuget_org:
@@ -28,7 +28,7 @@ env:
28 28
29 29 jobs:
30 30 publish:
31 runs-on: ubuntu-latest
31 runs-on: windows-latest
32 32
33 33 steps:
34 34 - name: Checkout
@@ -76,25 +76,42 @@ jobs:
76 76 if-no-files-found: error
77 77
78 78 - name: Publish to GitHub Packages
79 run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIR }}/*.nupkg --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
79 shell: pwsh
80 run: |
81 $packages = Get-ChildItem -Path "${{ env.PACKAGE_OUTPUT_DIR }}" -Filter *.nupkg -File
82 if (-not $packages) {
83 throw "No .nupkg files found in ${{ env.PACKAGE_OUTPUT_DIR }}"
84 }
85
86 foreach ($package in $packages) {
87 dotnet nuget push $package.FullName --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
88 }
80 89
81 90 - name: Publish to NuGet.org
82 91 if: ${{ github.event_name != 'workflow_dispatch' || !inputs.skip_nuget_org }}
83 run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIR }}/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key "${{ secrets.NUGET_API_KEY }}" --skip-duplicate
92 shell: pwsh
93 run: |
94 $packages = Get-ChildItem -Path "${{ env.PACKAGE_OUTPUT_DIR }}" -Filter *.nupkg -File
95 if (-not $packages) {
96 throw "No .nupkg files found in ${{ env.PACKAGE_OUTPUT_DIR }}"
97 }
98
99 foreach ($package in $packages) {
100 dotnet nuget push $package.FullName --source "https://api.nuget.org/v3/index.json" --api-key "${{ secrets.NUGET_API_KEY }}" --skip-duplicate
101 }
84 102
85 103 - name: Create GitHub Release
86 if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
87 104 uses: softprops/action-gh-release@v2
88 105 with:
89 tag_name: ${{ github.ref_name }}
90 name: XFEExtension.NetCore.ServerInteractive ${{ github.ref_name }}
106 tag_name: ${{ env.PACKAGE_VERSION }}
107 name: V${{ env.PACKAGE_VERSION }}
91 108 generate_release_notes: true
92 109 append_body: true
93 110 body: |
94 111 ## Package feeds
95 112
96 113 - NuGet.org
97 - GitHub Packages: `https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json`
114 - GitHub Packages
98 115 files: ${{ env.PACKAGE_OUTPUT_DIR }}/*.nupkg
99 116 fail_on_unmatched_files: true
100 117 prerelease: ${{ contains(env.PACKAGE_VERSION, '-') }}
Modified .github/workflows/validate.yml +1 -1
@@ -16,7 +16,7 @@ env:
16 16
17 17 jobs:
18 18 build:
19 runs-on: ubuntu-latest
19 runs-on: windows-latest
20 20
21 21 steps:
22 22 - name: Checkout
Modified README.md +1 -1
@@ -5,7 +5,7 @@
5 5 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.txt)
6 6 [![.NET](https://img.shields.io/badge/.NET-10.0-512BD4)](https://dotnet.microsoft.com/download)
7 7
8 > 🌐 English | [简体中文](https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive/blob/master/README_CN.md)
8 > 📖 English | [简体中文](https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive/blob/master/README.zh-CN.md)
9 9
10 10 ## Description
11 11
Renamed README.zh-CN.md +1 -1
@@ -5,7 +5,7 @@
5 5 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE.txt)
6 6 [![.NET](https://img.shields.io/badge/.NET-10.0-512BD4)](https://dotnet.microsoft.com/download)
7 7
8 > 🌐 [English](https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive/blob/master/README_CN.md) | 简体中文
8 > 📖 [English](https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive/blob/master/README.zh-CN.md) | 简体中文
9 9
10 10 ## 描述
11 11
Modified XFEExtension.NetCore.ServerInteractive.Test/XFEExtension.NetCore.ServerInteractive.Test.csproj +1 -1
@@ -8,7 +8,7 @@
8 8 </PropertyGroup>
9 9
10 10 <ItemGroup>
11 <PackageReference Include="XFEExtension.NetCore.XUnit" Version="2.0.4" />
11 <PackageReference Include="XFEExtension.NetCore.XUnit" Version="2.1.1" />
12 12 </ItemGroup>
13 13
14 14 <ItemGroup>
Modified XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj +4 -4
@@ -22,7 +22,7 @@
22 22 ## 调整
23 23
24 24 更新md文档
25
25
26 26 ## 新增
27 27
28 28
@@ -50,16 +50,16 @@
50 50 <Pack>True</Pack>
51 51 <PackagePath>\</PackagePath>
52 52 </None>
53 <None Include="..\README_CN.md">
53 <None Include="..\README.zh-CN.md">
54 54 <Pack>True</Pack>
55 55 <PackagePath>\</PackagePath>
56 56 </None>
57 57 </ItemGroup>
58 58
59 59 <ItemGroup>
60 <PackageReference Include="System.Management" Version="10.0.5" />
60 <PackageReference Include="System.Management" Version="10.0.7" />
61 61 <PackageReference Include="XFEExtension.NetCore" Version="4.2.*" />
62 <PackageReference Include="XFEExtension.NetCore.AutoConfig" Version="2.0.*" />
62 <PackageReference Include="XFEExtension.NetCore.AutoConfig" Version="3.0.*" />
63 63 <PackageReference Include="XFEExtension.NetCore.AutoImplement" Version="1.1.*" />
64 64 <PackageReference Include="XFEExtension.NetCore.XFEConsole" Version="2.2.*" />
65 65 </ItemGroup>