This repository has been archived by the owner on May 6, 2024. It is now read-only.
Merge pull request #16 from dotnet-campus/t/lindexi/dotnet #11
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: publish nuget | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Build with dotnet | |
run: dotnet build --configuration Release | |
- name: Install Nuget | |
uses: nuget/setup-nuget@v1 | |
with: | |
nuget-version: '5.x' | |
- name: Add private GitHub registry to NuGet | |
run: | | |
nuget sources add -name github -Source https://nuget.pkg.github.com/ORGANIZATION_NAME/index.json -Username ORGANIZATION_NAME -Password ${{ secrets.GITHUB_TOKEN }} | |
- name: Push generated package to GitHub registry | |
run: | | |
nuget push .\bin\release\*.nupkg -Source github -SkipDuplicate | |
nuget push .\bin\release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbols |