Skip to content

Commit 0656461

Browse files
JusterZhuclaude
andcommitted
fix: resolve all CI and versioning issues in one pass
- Remove hardcoded <Version>1.0.0</Version> from csproj (moved to Directory.Build.props) - Remove <GeneratePackageOnBuild>true</GeneratePackageOnBuild> to prevent duplicate packing - Add .NET 10 SDK to publish workflow (project targets net10.0) - Restore push-to-nuget toggle for flexible publish/dry-run Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d124abb commit 0656461

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/publish-nuget.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
description: 'NuGet package version (SemVer 2.0, e.g. 1.0.0, 1.0.0-beta.1)'
88
required: true
99
type: string
10+
push-to-nuget:
11+
description: 'Push package to NuGet.org'
12+
required: false
13+
type: boolean
14+
default: true
1015

1116
permissions:
1217
contents: write
@@ -34,7 +39,9 @@ jobs:
3439
- name: Setup .NET
3540
uses: actions/setup-dotnet@v4
3641
with:
37-
dotnet-version: 8.0.x
42+
dotnet-version: |
43+
8.0.x
44+
10.0.x
3845
3946
- name: Install Android workload
4047
run: dotnet workload install android
@@ -77,6 +84,7 @@ jobs:
7784
--verify-tag
7885
7986
- name: Push NuGet package to NuGet.org (Trusted Publishing via OIDC)
87+
if: ${{ inputs.push-to-nuget == true }}
8088
run: |
8189
dotnet nuget push artifacts/*.nupkg \
8290
--source https://api.nuget.org/v3/index.json \

src/GeneralUpdate.Avalonia.Android/GeneralUpdate.Avalonia.Android.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,11 @@
77
<LangVersion>latest</LangVersion>
88

99
<!-- Pack settings -->
10-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1110
<PackageId>GeneralUpdate.Avalonia.Android</PackageId>
12-
<Version>1.0.0</Version>
1311
<Description>UI-free, Avalonia-compatible Android auto-update core library. Provides version comparison, resumable APK download with SHA256 verification, and APK installation orchestration.</Description>
1412
<Authors>GeneralLibrary</Authors>
1513
<Copyright>Copyright (c) GeneralLibrary</Copyright>
16-
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
1714
<PackageProjectUrl>https://github.com/GeneralLibrary/GeneralUpdate.Avalonia</PackageProjectUrl>
18-
<RepositoryUrl>https://github.com/GeneralLibrary/GeneralUpdate.Avalonia</RepositoryUrl>
19-
<RepositoryType>git</RepositoryType>
2015
<PackageTags>avalonia;android;update;apk;autoupdate;generalupdate</PackageTags>
2116
<PackageReadmeFile>README.md</PackageReadmeFile>
2217
<PackageReleaseNotes>https://github.com/GeneralLibrary/GeneralUpdate.Avalonia/releases</PackageReleaseNotes>

0 commit comments

Comments
 (0)