Create release #50
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
name: Create release | |
# On push to master branch. i.e. when we merge a PR. | |
on: | |
push: | |
branches: [ master, VFL/WI00764279/NCN-Diagrams-Move-WTG.Blazor.Diagrams-to-nuget.org ] | |
tags: | |
- "*" | |
workflow_dispatch: | |
env: | |
NUGET_DIR: '${{ github.workspace }}/nuget' | |
jobs: | |
publish-pkg: | |
name: Build - Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
3.1.x | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release | |
- name: Upload packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package | |
path: /home/runner/work/Blazor.Diagrams/Blazor.Diagrams/src/Blazor.Diagrams/bin/Release/*.nupkg | |
retention-days: 5 |