xml comment add #32
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
# .NET SDK | |
# Includes NuGet package update for master branch. | |
# 2023.04.05 | |
name: .NET | |
on: | |
push: | |
branches: [ "develop", "release", "master" ] | |
defaults: | |
run: | |
working-directory: src | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: | | |
dotnet build --no-restore -c release ./BOG.DropZone/BOG.DropZone.csproj | |
- name: NuGet package publish (BOG.DropZone.Common) | |
if: github.event.ref == 'refs/heads/master' | |
env: | |
NGKEY: ${{ secrets.NUGET_API_KEY }} | |
NGSRC: ${{ vars.NUGET_SOURCE }} | |
run: | | |
dotnet nuget push ./BOG.DropZone.Common/bin/release/BOG.DropZone.Common.*.nupkg --api-key ${NGKEY} --source ${NGSRC} --skip-duplicate | |
- name: NuGet package publish (BOG.DropZone.Client) | |
if: github.event.ref == 'refs/heads/master' | |
env: | |
NGKEY: ${{ secrets.NUGET_API_KEY }} | |
NGSRC: ${{ vars.NUGET_SOURCE }} | |
run: | | |
dotnet nuget push ./BOG.DropZone.Client/bin/release/BOG.DropZone.Client.*.nupkg --api-key ${NGKEY} --source ${NGSRC} --skip-duplicate |