Skip to content

Commit

Permalink
Update create-release.yml
Browse files Browse the repository at this point in the history
Added the creation and deployment of NuGet package.
  • Loading branch information
sonomirco authored Oct 6, 2021
1 parent 81ac4ae commit 18fa16c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ jobs:

- name: 🧱 Build project
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release -p:Version=${{ steps.bump-with-alpha.outputs.result }}

- name: 📦 Create the package
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release -p:PackageVersion=${{ steps.bump-with-alpha.outputs.result }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}

- name: 🚀 Publish the package
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg --skip-duplicate -k ${{ secrets.NUGET_API_KEY }} -s ${{ env.NUGET_SOURCE_URL }}

- name: 📘 Create Release
id: create_release
Expand All @@ -76,4 +82,4 @@ jobs:
${{ github.event.pull_request.body }}
draft: false
prerelease: false
prerelease: false

0 comments on commit 18fa16c

Please sign in to comment.