Skip to content

Merge pull request #366 from SierraSoftworks/dependabot/npm_and_yarn/… #283

Merge pull request #366 from SierraSoftworks/dependabot/npm_and_yarn/…

Merge pull request #366 from SierraSoftworks/dependabot/npm_and_yarn/… #283

Workflow file for this run

name: NuGet
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
- name: Publish DocFX Plugin
run: |
dotnet pack -o out --configuration Release ./tools/docfx
cp ./.github/workflows/nuget.config ./
dotnet nuget push out/*.nupkg -s GitHub --skip-duplicate
dotnet nuget push out/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}