Skip to content
This repository has been archived by the owner on Jul 31, 2022. It is now read-only.

Commit

Permalink
Added NuGet package logic
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Jan 6, 2022
1 parent 9b2d39f commit b78215d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,20 @@ jobs:
#Publish console app
- name: publish console app
run: dotnet publish src/TechDebtID.App/TechDebtID.App.csproj --configuration ${{ env.dotNetConfiguration }} /p:AssemblyVersion=${{ steps.gitversion.outputs.majorMinorPatch }} /p:Version=${{ steps.gitversion.outputs.majorMinorPatch }}
#Publish build artifacts to GitHub
- name: Upload build artifacts back to GitHub
uses: actions/upload-artifact@master
with:
name: app
path: src/TechDebtID/bin/${{ env.dotNetConfiguration }}/${{ env.dotNetVersion }}/
path: src/TechDebtID.App/bin/${{ env.dotNetConfiguration }}/${{ env.dotNetVersion }}/

#Pack NuGet package
- name: pack NuGet package
run: dotnet pack src/TechDebtID/TechDebtID.csproj -c ${{ env.dotNetConfiguration }} --nologo --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'
- name: Upload nuget package back to GitHub
uses: actions/upload-artifact@v2
with:
name: nugetPackage
path: src/TechDebtID/bin/${{ env.dotNetConfiguration }}

NuGetPush:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b78215d

Please sign in to comment.