Skip to content

1.1.0

1.1.0 #3

Workflow file for this run

name: CD Build
on:
workflow_dispatch:
inputs:
version:
description: 'Release Version'
required: true
release:
types: [ published ]
env:
PACKAGE_VERSION: ${{ github.event.inputs.version || github.event.release.tag_name }}
jobs:
publish:
name: Publish to Nuget
runs-on: ubuntu-latest
strategy:
matrix:
project-name:
- Docfx.ResultSnippets
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
3.1.x
6.0.x
7.0.x
- name: Release Build
run: dotnet pack --configuration Release -p:ContinuousIntegrationBuild=true -p:PackageVersion=${{ env.PACKAGE_VERSION }} ${{ matrix.project-name }}/${{ matrix.project-name }}.csproj
- name: Push to Nuget
run: dotnet nuget push **\*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate