-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (38 loc) · 1.49 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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: build
on: [push]
env:
VERSION_PREFIX: "0.0.3"
jobs:
build:
runs-on: windows-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
- name: Setup .NET Core 3.1.x
uses: Brightspace/third-party-actions@actions/setup-dotnet
with:
dotnet-version: 3.1.x
- name: Setup .NET 5.0.x
uses: Brightspace/third-party-actions@actions/setup-dotnet
with:
dotnet-version: 5.0.x
- name: Setup .NET 8.0.x
uses: Brightspace/third-party-actions@actions/setup-dotnet
with:
dotnet-version: 8.0.x
- name: dotnet tool restore
run: dotnet tool restore
- name: Generate version properties
run: dotnet ci-version-properties --output VersionInfo.props && cat VersionInfo.props
- name: dotnet restore
run: dotnet restore
- name: dotnet build
run: dotnet build --configuration Release
- name: dotnet pack
run: dotnet pack --configuration Release --no-build
- name: Copy *.nuget to dist/
run: mkdir dist/ && cp src/DotnetDynamoDBLock/bin/Release/*.nupkg dist/
- name: Archive dist/
uses: Brightspace/third-party-actions@actions/upload-artifact
with:
name: dist
path: dist/