Skip to content

Merge pull request #2 from marknn3/add-target-netstandard20 #7

Merge pull request #2 from marknn3/add-target-netstandard20

Merge pull request #2 from marknn3/add-target-netstandard20 #7

Workflow file for this run

name: nuget
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to release'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore ./src
- name: Build
run: dotnet build ./src --no-restore --configuration Release
- name: Test
run: dotnet test ./src --no-build --verbosity normal --configuration Release
# - name: Create the package
# run: dotnet pack ./src --configuration Release
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Publish the package to nuget.org
run: dotnet nuget push src/Markdig.Renderers.Docx/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}