Skip to content

Commit

Permalink
Update publish-nuget-package.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dclipca authored Jan 22, 2025
1 parent 1ca0476 commit 27c2f86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Get version from source
id: get-version
run: |
VERSION=$(cat SpongeEngine.LmStudioSharp/SpongeEngine.LmStudioSharp.csproj | grep '<Version>' | sed -E 's/.*<Version>(.*)<\/Version>.*/\1/')
VERSION=$(cat SpongeEngine.LMStudioSharp/SpongeEngine.LMStudioSharp.csproj | grep '<Version>' | sed -E 's/.*<Version>(.*)<\/Version>.*/\1/')
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Using version: $VERSION"
Expand All @@ -43,4 +43,4 @@ jobs:
run: dotnet pack --configuration Release --output ./output /p:Version=${{ env.VERSION }}

- name: Publish NuGet Package
run: dotnet nuget push ./output/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
run: dotnet nuget push ./output/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 27c2f86

Please sign in to comment.