forked from Blazor-Diagrams/Blazor.Diagrams
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from WiseTechGlobal/VFL/WI00764279/NCN-Diagram…
…s-Move-WTG.Blazor.Diagrams-to-nuget.org WI00764279 -- NCN Diagrams Move wtg.blazor.diagrams to nuget.org
- Loading branch information
Showing
3 changed files
with
27 additions
and
14 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Create release | ||
|
||
# On push to master branch. i.e. when we merge a PR. | ||
on: | ||
push: | ||
|
@@ -9,20 +10,20 @@ env: | |
PACKAGE_PATH: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg | ||
|
||
jobs: | ||
build: | ||
release: | ||
name: Build - Release | ||
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: | | ||
6.0.x | ||
3.1.x | ||
dotnet-version: '6.0.x' | ||
|
||
# Finds the latest release and increases the version | ||
- name: Get next version | ||
uses: reecetech/[email protected] | ||
|
@@ -59,3 +60,8 @@ jobs: | |
with: | ||
files: ${{ env.PACKAGE_PATH }} | ||
tag_name: ${{ steps.version.outputs.version }} | ||
|
||
- name: Push NuGet Package to NuGet Gallery | ||
run: | | ||
nuget setapikey ${{ secrets.NUGET_API_KEY }} | ||
nuget push ${{ env.PACKAGE_PATH }} -Source https://api.nuget.org/v3/index.json |
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