-
-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (29 loc) · 888 Bytes
/
build.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
34
name: Build
on:
push:
branches:
- 'main'
paths-ignore:
- '*.md'
- 'CMakeLists.txt'
pull_request:
paths-ignore:
- '*.md'
- 'CMakeLists.txt'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
global-json-file: ./global.json
- name: Pack
run: dotnet pack Alimer.Bindings.SDL.sln --configuration Release
- name: Publish to NuGet
if: github.event_name == 'push'
run: |
dotnet nuget push artifacts/package/release/*.nupkg -k ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json
dotnet nuget push artifacts/package/release/*.snupkg -k ${{secrets.NUGET_TOKEN}} --skip-duplicate --source https://api.nuget.org/v3/index.json