Skip to content

Merge pull request #50 from dotnet-campus/t/lindexi/Docs #15

Merge pull request #50 from dotnet-campus/t/lindexi/Docs

Merge pull request #50 from dotnet-campus/t/lindexi/Docs #15

Workflow file for this run

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 "EncodingNormalior\dotnetCampus.EncodingNormalior.csproj" --configuration Release
- name: Install Nuget
run: |
$sourceNugetExe = "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe"
$targetNugetExe = "nuget.exe"
Invoke-WebRequest $sourceNugetExe -OutFile $targetNugetExe
- 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