-
Notifications
You must be signed in to change notification settings - Fork 7
33 lines (28 loc) · 916 Bytes
/
main.yml
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
26
27
28
29
30
31
32
33
name: NuGet Gallery Push
on:
release:
types: [published]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: NuGet Installation
uses: nuget/setup-nuget@v1
with:
nuget-version: "latest"
- name: MSBuild Installation
uses: microsoft/[email protected]
- name: Dependency Restoration
run: msbuild "Kernel Simulator.sln" -t:restore -p:Configuration=Release
- name: Solution Compilation
run: msbuild "Kernel Simulator.sln" -p:Configuration=Release
- name: NuGet Preparation
run: nuget setApiKey ${{ secrets.NUGET_APIKEY }}
- name: Package Publication
run: |
$path = "Kernel Simulator\KSBuild"
$FileName = Get-ChildItem -Path $path -Recurse -Name -Filter "*symbols*"
nuget push "$path\$FileName" -source "nuget.org"