-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c56194e
commit e9ff2ab
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|