Skip to content

Commit 4e66676

Browse files
fix publish package workflow
1 parent 734436b commit 4e66676

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
name: Publish NuGet Package
1+
name: 📦 Publish NuGet Package
22

33
on:
44
push:
55
tags:
6-
- 'v*.*.*' # Only runs when a version tag is pushed, like v1.1.4
6+
- 'v*.*.*' # Triggers on version tags like v1.1.6
77

88
permissions:
99
contents: read
1010
packages: write
1111

1212
jobs:
1313
publish:
14+
name: Publish to NuGet.org
1415
runs-on: ubuntu-latest
15-
16-
environment: production # matches the environment where you set NuGetKey
16+
environment: production
1717

1818
steps:
1919
- name: Checkout Code
@@ -27,11 +27,11 @@ jobs:
2727
- name: Restore Dependencies
2828
run: dotnet restore ./Testimize/Testimize.csproj
2929

30-
- name: Build Solution
30+
- name: Build Project
3131
run: dotnet build ./Testimize/Testimize.csproj --configuration Release --no-restore
3232

3333
- name: Pack NuGet Package
3434
run: dotnet pack ./Testimize/Testimize.csproj --configuration Release --no-build --output ./nupkg
3535

36-
- name: Publish to NuGet.org
37-
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGETKEY }} --source "https://api.nuget.org/v3/index.json"
36+
- name: Push to NuGet.org
37+
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGETKEY }} --source https://api.nuget.org/v3/index.json

Testimize/Testimize.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
</PropertyGroup>
1313

1414
<PropertyGroup>
15-
<Version>1.1.5.0</Version>
15+
<Version>1.1.6.0</Version>
1616
<Authors>Anton Angelov</Authors>
1717
<Company>Automate The Planet Ltd.</Company>
1818
<Product>Testimize – Test and Data Generation Library</Product>
19-
<AssemblyVersion>1.1.5.0</AssemblyVersion>
20-
<FileVersion>1.1.5.0</FileVersion>
19+
<AssemblyVersion>1.1.6.0</AssemblyVersion>
20+
<FileVersion>1.1.6.0</FileVersion>
2121
<NeutralLanguage>en</NeutralLanguage>
2222
<Copyright>Copyright © Automate The Planet Ltd. 2025</Copyright>
2323
<PackageLicenseFile>LICENSE</PackageLicenseFile>
@@ -58,9 +58,10 @@
5858
<!-- JSON settings config file -->
5959
<Content Include="samples\testimizeSettings.json">
6060
<Pack>true</Pack>
61-
<PackagePath>contentFiles\any\any\testimizeSettings.json</PackagePath>
61+
<PackagePath>contentFiles\cs\any</PackagePath>
6262
<CopyToOutput>true</CopyToOutput>
6363
<BuildAction>None</BuildAction>
64+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6465
</Content>
6566

6667
<!-- Sample test files -->

0 commit comments

Comments
 (0)