Skip to content

v0.0.2-beta

v0.0.2-beta #121

Workflow file for this run

name: Publish NuGet package
on:
workflow_dispatch:
release:
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
foreach($file in (Get-ChildItem ./nupkg -Recurse -Include *.nupkg)) {
dotnet nuget push $file --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
}