forked from DomCR/ACadSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 742 Bytes
/
publish.yml
File metadata and controls
25 lines (23 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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/ACadSharp.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
}