-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (36 loc) · 1.01 KB
/
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
35
36
37
38
39
name: OpenTK GLFW Redistributable
on:
workflow_dispatch:
inputs:
push:
branches:
- master
- develop
jobs:
build:
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
steps:
- name: Install X11 dependencies
run: |
sudo apt-get update
sudo apt-get install xorg-dev libwayland-dev libxkbcommon-dev wayland-protocols extra-cmake-modules
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Download dependencies and create Nuget Package
run: ./make_nuget.ps1 "" ${{ github.run_number }}
shell: pwsh
- uses: actions/upload-artifact@v3
with:
name: NugetPackage
path: ./artifacts/*.nupkg
- name: Deploy Nuget Package
run: dotnet nuget push ./artifacts/*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json