返回提交历史
Modified
.github/PUBLISHING.md
+1
-1
Modified
.github/workflows/publish-packages.yml
+4
-4
Modified
.github/workflows/validate.yml
+2
-3
XFEstudio/XFEExtension.NetCore.AutoPath
完善CI流
8c927ef
代码差异
3 个文件
+7
-8
@@ -9,7 +9,7 @@ This repository now includes two GitHub Actions workflows:
9
9
10
10
Add this repository secret before publishing to NuGet.org:
11
11
12
- `NUGET_API_KEY`: API key from NuGet.org with push permission for `XFEExtension.NetCore.AutoPath`
12
- `NUGET_API_KEY`: API key from NuGet.org with push permission for `XFEExtension.NetCore.AutoConfig`
13
13
14
14
No extra secret is required for GitHub Packages. The workflow uses the built-in `GITHUB_TOKEN` and requests `packages: write`.
15
15
@@ -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:
@@ -103,15 +103,15 @@ jobs:
103
103
- name: Create GitHub Release
104
104
uses: softprops/action-gh-release@v2
105
105
with:
106
tag_name: ${{ github.ref_name }}
107
name: XFEExtension.NetCore.AutoPath ${{ github.ref_name }}
106
tag_name: ${{ inputs.version }}
107
name: V${{ inputs.version }}
108
108
generate_release_notes: true
109
109
append_body: true
110
110
body: |
111
111
## Package feeds
112
112
113
113
- NuGet.org
114
- GitHub Packages: `https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json`
114
- GitHub Packages
115
115
files: ${{ env.PACKAGE_OUTPUT_DIR }}/*.nupkg
116
116
fail_on_unmatched_files: true
117
117
prerelease: ${{ contains(env.PACKAGE_VERSION, '-') }}
@@ -13,7 +13,6 @@ permissions:
13
13
env:
14
14
DOTNET_VERSION: 10.0.x
15
15
SOLUTION_PATH: XFEExtension.NetCore.AutoPath.slnx
16
PROJECT_PATH: XFEExtension.NetCore.AutoPath/XFEExtension.NetCore.AutoPath.csproj
17
16
18
17
jobs:
19
18
build:
@@ -29,7 +28,7 @@ jobs:
29
28
dotnet-version: ${{ env.DOTNET_VERSION }}
30
29
31
30
- name: Restore
32
run: dotnet restore ${{ env.PROJECT_PATH }}
31
run: dotnet restore ${{ env.SOLUTION_PATH }}
33
32
34
33
- name: Build
35
run: dotnet build ${{ env.PROJECT_PATH }} --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:ContinuousIntegrationBuild=true
34
run: dotnet build ${{ env.SOLUTION_PATH }} --configuration Release --no-restore -p:GeneratePackageOnBuild=false -p:ContinuousIntegrationBuild=true