Skip to content

Commit 1086d84

Browse files
author
Taha Zahit Hakyemez
committed
Enable publishing to GitHub Packages and bump version to 2.0.8
1 parent d565e17 commit 1086d84

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ jobs:
1212
build-and-publish:
1313
runs-on: ubuntu-latest
1414

15+
permissions:
16+
packages: write
17+
contents: read
18+
1519
steps:
1620
- uses: actions/checkout@v4
1721

@@ -36,3 +40,7 @@ jobs:
3640
- name: Publish to NuGet
3741
if: github.event_name == 'release'
3842
run: dotnet nuget push "nuget-packages/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
43+
44+
- name: Publish to GitHub Packages
45+
if: github.event_name == 'release'
46+
run: dotnet nuget push "nuget-packages/*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" --skip-duplicate

BiMap/BiMap.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<TargetFramework>netstandard2.0</TargetFramework>
66
<Authors>Taha Zahit Hakyemez</Authors>
77
<Description>Thread-safe, high-performance generic bidirectional map for .NET (BiMap). Supports O(1) lookups in both directions.</Description>
8-
<PackageReleaseNotes>Optimized CI/CD workflow (Single-Job, v4 Actions).</PackageReleaseNotes>
8+
<PackageReleaseNotes>Added publishing to GitHub Packages registry.</PackageReleaseNotes>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
10-
<Version>2.0.7</Version>
10+
<Version>2.0.8</Version>
1111
<PackageReadmeFile>README.md</PackageReadmeFile>
1212
<RepositoryUrl>https://github.com/TahaZahit/BiMap</RepositoryUrl>
1313
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)