-
Notifications
You must be signed in to change notification settings - Fork 58
35 lines (33 loc) · 974 Bytes
/
dotnet.yml
File metadata and controls
35 lines (33 loc) · 974 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: ci/github-actions
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: nuget/setup-nuget@v1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Restore
run: nuget restore Source/OxyPlot.Xamarin.Forms.sln
- name: Build
run: msbuild Source/OxyPlot.Xamarin.Forms.sln -p:RestorePackages=false -p:Configuration=Release
- name: Package
run: nuget pack Source/OxyPlot.Xamarin.Forms.nuspec -Version $(git describe) -outputdirectory Artifacts
- name: Upload packages
uses: actions/upload-artifact@v3
with:
name: nupkg
path: Artifacts/*.nupkg