@@ -17,32 +17,31 @@ jobs:
1717 - name : Setup .NET
1818 uses : actions/setup-dotnet@v3
1919 with :
20- dotnet-version : ' 8 .0.x'
20+ dotnet-version : ' 7 .0.x'
2121
2222 # Restore dependencies explicitly in the Clap.Net subfolder
2323 - name : Restore Dependencies
2424 working-directory : ./Clap.Net
2525 run : dotnet restore
2626
2727 # Generate version string (0.1.<run_number>-beta)
28- # Note: Adjust versioning logic here if you need a more granular version number
2928 - name : Set version number
3029 id : version
3130 run : echo "version=0.1.${GITHUB_RUN_NUMBER}-beta" >> $GITHUB_OUTPUT
3231
33- # Ensure the artifacts folder exists at the root of the repository
32+ # Ensure the artifacts folder exists at the repository root
3433 - name : Create artifacts folder
3534 run : mkdir -p artifacts
3635
37- # Pack the NuGet package from the Clap.Net subfolder
36+ # Pack the NuGet package from the Clap.Net subfolder, output to ../artifacts (which is ./artifacts from the repo root)
3837 - name : Pack NuGet package
3938 working-directory : ./Clap.Net
4039 run : dotnet pack -c Release -o ../artifacts -p:Version=${{ steps.version.outputs.version }}
4140
4241 # Optional: Verify the package file exists and follows the expected naming pattern
4342 - name : List generated package files
44- run : ls -l ../ artifacts/Clap.Net.*.nupkg
43+ run : ls -l artifacts/Clap.Net.*.nupkg
4544
4645 # Push the NuGet package to NuGet.org using the secret API key scoped to Clap.Net
4746 - name : Publish NuGet package
48- run : dotnet nuget push ../ artifacts/Clap.Net.*.nupkg -k ${{ secrets.NUGET_CLAP_NET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
47+ run : dotnet nuget push artifacts/Clap.Net.*.nupkg -k ${{ secrets.NUGET_CLAP_NET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
0 commit comments