Publish package #114
Workflow file for this run
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 package | |
on: | |
workflow_dispatch: | |
release: | |
branches: [ master ] | |
# remove on merge | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Publish NuGet package | |
working-directory: src | |
run: | | |
git submodule update --force --recursive --init --remote | |
dotnet restore | |
dotnet build --configuration Release | |
dotnet pack ./ACadSharp.pdf/ACadSharp.Pdf.csproj --configuration Release | |
# dotnet nuget push ./nupkg/ACadSharp.Pdf.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json |