forked from GtkSharp/GtkSharp
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 1.04 KB
/
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
34
35
36
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
permissions:
packages: write
strategy:
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Restore dotnet tools
run: dotnet tool restore
- name: Run build.cake
run: dotnet cake build.cake
env:
GITHUB_ACTIONS: true
- uses: actions/upload-artifact@main
with:
name: NuGet Packages
path: |
BuildOutput/NugetPackages/**/*.nupkg
if-no-files-found: error
- name: Push NuGet to GitHub packages
run: dotnet nuget push BuildOutput/NugetPackages/**/*.nupkg --source https://nuget.pkg.github.com/$GITHUB_REPOSITORY_OWNER/index.json --api-key ${GITHUB_TOKEN}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}