Skip to content

Commit f2b61c7

Browse files
committed
修正publish-beta.yml中的变量名,将WebPackTargetFrameworks更改为PackageTargetFrameworks
1 parent ee4d771 commit f2b61c7

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: |
3535
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob/AntJob.csproj
3636
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Extensions/AntJob.Extensions.csproj
37-
WebPackTargetFrameworks='net8.0;net10.0' dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Web/AntJob.Web.csproj
37+
PackageTargetFrameworks='net8.0;net10.0' dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out AntJob.Web/AntJob.Web.csproj
3838
- name: Publish
3939
run: |
4040
dotnet nuget push ./out/*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/NewLifeX/index.json --api-key ${{ github.token }}

AntJob.Web/AntJob.Web.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<AssemblyVersion>$(VersionPrefix).*</AssemblyVersion>
1515
<Deterministic>false</Deterministic>
1616
<OutputPath>..\Bin\Web</OutputPath>
17-
<AppendTargetFrameworkToOutputPath Condition="'$(PackageTargetFrameworks)' == ''">false</AppendTargetFrameworkToOutputPath>
17+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
18+
<AppendTargetFrameworkToOutputPath Condition="'$(PackageTargetFrameworks)' != ''">true</AppendTargetFrameworkToOutputPath>
1819
<ImplicitUsings>enable</ImplicitUsings>
1920
<LangVersion>latest</LangVersion>
2021
<IsPackable>true</IsPackable>

0 commit comments

Comments
 (0)