Skip to content

Commit

Permalink
prefix bin/release with Match3Maker
Browse files Browse the repository at this point in the history
  • Loading branch information
ninetailsrabbit committed Jun 5, 2024
1 parent c56194e commit e9ff2ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
dotnet-version: 8.0.x

- name: Build and Pack NuGet package with versioning
run: dotnet pack ${{ vars.CSPROJ_PATH }} -p:GeneratePackageOnBuild=false -c Release
run: dotnet pack ${{ vars.CSPROJ_PATH }} -p:GeneratePackageOnBuild=false -p:Version='${{ steps.gitversion.outputs.SemVer }}' -c Release

- name: Upload NuGet package to GitHub
uses: actions/[email protected]
with:
name: nugetPackage
path: bin/Release/*.nupkg
path: Match3Maker/bin/Release/*.nupkg

release:
runs-on: ubuntu-latest
Expand All @@ -55,15 +55,15 @@ jobs:
uses: actions/[email protected]
with:
name: nugetPackage
path: bin/Release/*.nupkg
path: Match3Maker/bin/Release/*.nupkg
- name: Prep packages
run: dotnet nuget add source --username ${{ vars.USERNAME }} --password ${{ secrets.NUGET_PACKAGE_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ vars.USERNAME }}/index.json"
- name: Push package to GitHub packages
if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change
run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} --source "github"
# Publish to NuGet.org
- name: Publish to NuGet.org
run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
run: dotnet nuget push nugetPackage/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

#Create release
- name: Create Release
Expand Down

0 comments on commit e9ff2ab

Please sign in to comment.