forked from CursedJvmSharp/ObjectWeb.Asm
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (28 loc) · 957 Bytes
/
dotnet-core-windows.yml
File metadata and controls
35 lines (28 loc) · 957 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
26
27
28
29
30
31
32
33
34
35
name: Build ObjectWeb.Asm (Windows)
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100-rc.2.20479.15'
- name: Build ObjectWeb.Asm
run: dotnet build ObjectWeb.Asm -c Release
- name: Pack ObjectWeb.Asm
run: dotnet pack ObjectWeb.Asm -o . -c Release
- name: NuGet Push Packages
if: ${{ github.event_name != 'pull_request' }}
run: dotnet nuget push *.nupkg --api-key ${{secrets.NUGET_APIKEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
- name: Upload NuGet Build Artifacts
uses: actions/upload-artifact@v2.2.0
with:
name: 'Built NuGet Packages'
path: '.\*.nupkg'