Skip to content

Commit 084fbbd

Browse files
authored
Merge pull request #3 from kpol/build_upgrade
Build upgrade
2 parents 39877d1 + 1703667 commit 084fbbd

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/build-test-publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,26 @@ jobs:
1616
with:
1717
dotnet-version: '8.0.x'
1818

19+
- name: Extract version from tag
20+
id: extract_version
21+
run: |
22+
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
23+
echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
24+
1925
- name: Build
2026
run: dotnet build ./src/KPasswordGenerator.sln --configuration Release
2127

2228
- name: Run tests
2329
run: dotnet test ./src/KPasswordGenerator.sln
2430

2531
- name: Pack NuGet package
26-
run: dotnet pack ./src/KPasswordGenerator/KPasswordGenerator.csproj --configuration Release -p:PackageVersion=${{ env.PACKAGE_VERSION }} -o package
32+
run: dotnet pack ./src/KPasswordGenerator/KPasswordGenerator.csproj --configuration Release -p:PackageVersion=${{ env.VERSION }} -o package
2733

2834
- name: Upload NuGet package as artifact
2935
uses: actions/upload-artifact@v4
3036
with:
3137
name: NuGetPackage
3238
path: package/*.nupkg
3339

34-
#- name: Push to NuGet
35-
# if: startsWith(github.ref, 'refs/tags/v')
36-
# run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
40+
- name: Push to NuGet
41+
run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets.NUGETAPIKEY }} --source https://api.nuget.org/v3/index.json

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# KPasswordGenerator
1+
# PasswordGenerator
22

33
A lightweight, secure, and flexible password generator library for .NET, built with cryptographic randomness and fully customizable character sets.
44

src/KPasswordGenerator/KPasswordGenerator.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<PackageTags>password;security;generator</PackageTags>
1212
<PackageReadmeFile>README.md</PackageReadmeFile>
1313
<Description>A lightweight, secure, and flexible password generator library for .NET, built with cryptographic randomness and fully customizable character sets.</Description>
14+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1415
</PropertyGroup>
1516

1617
<ItemGroup>

0 commit comments

Comments
 (0)