Skip to content

Commit

Permalink
folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Dec 4, 2024
1 parent 428d8c2 commit 4dca2f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish NuGet package

on:
workflow_dispatch:
release:
branches: [ master ]

Expand All @@ -12,14 +13,13 @@ jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Restore dependencies
run: dotnet restore
- name: Build NuGet package
run: dotnet pack ./src/ACadSharp.pdf/ACadSharp.Pdf.csproj -c Release
- name: Publish NuGet package
run: dotnet nuget push ./src/nupkg/ACadSharp.Pdf.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
working-directory: src
run: |
dotnet restore
dotnet pack ./ACadSharp.pdf/ACadSharp.Pdf.csproj -c Release
dotnet nuget push ./nupkg/ACadSharp.Pdf.*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json

0 comments on commit 4dca2f0

Please sign in to comment.