Skip to content

Commit 2e0dd14

Browse files
committed
Pack for NET 9 only
1 parent 87961ad commit 2e0dd14

2 files changed

Lines changed: 9 additions & 26 deletions

File tree

.github/workflows/nuget-publish.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,32 +38,15 @@ jobs:
3838
if: matrix.dotnet-version == '9.x'
3939
run: dotnet pack --configuration Release --no-build --output ./nupkg
4040

41-
- name: Upload NuGet package
42-
if: matrix.dotnet-version == '9.x'
43-
uses: actions/upload-artifact@v4
41+
- name: Nuget Login (OIDC + temp API Key)
42+
uses: Nuget/login@v1
43+
id: login
4444
with:
45-
name: nupkg
46-
path: ./nupkg/*.nupkg
47-
48-
publish:
49-
needs: build-and-test
50-
runs-on: ubuntu-22.04
51-
steps:
52-
- name: Download NuGet package
53-
uses: actions/download-artifact@v4
54-
with:
55-
name: nupkg
56-
path: ./nupkg
57-
58-
- name: Nuget Login (OIDC + temp API Key)
59-
uses: Nuget/login@v1
60-
id: login
61-
with:
62-
user: ${{secrets.NUGET_USER}}
45+
user: ${{secrets.NUGET_USER}}
6346

64-
- name: Nuget push
65-
run: dotnet nuget push nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
47+
- name: Nuget push
48+
run: dotnet nuget push nupkg/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
6649

67-
- name: Done
68-
run: echo "Package published successfully!"
50+
- name: Done
51+
run: echo "Package published successfully!"
6952

OpenCode/OpenCode.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
55

66
<!-- NuGet package metadata -->
7-
<Version>3.3.0</Version>
7+
<Version>3.2.0</Version>
88
<PackageId>OpenCode</PackageId>
99
<Authors>Navneet Hegde</Authors>
1010
<Company>Navneet Hegde</Company>

0 commit comments

Comments
 (0)