-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 985 Bytes
/
build.yml
File metadata and controls
39 lines (34 loc) · 985 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
36
37
38
name: build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
NUGET_SOURCE: "./dist/packages"
NUGET_PUBLISH_SOURCE: "https://api.nuget.org/v3/index.json"
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
# - name: Set version
# run: source eng/load_env.sh && echo VERSION=$VERSION >> $GITHUB_ENV
# - name: Bump Version
# run: source eng/load_env.sh && source eng/bump-version.sh
- name: Build all packages
run: dotnet build -c Release
- name: Test
run: dotnet test -c Release
# - name: Package
# run: source eng/load_env.sh && source eng/package-all.sh
# - name: 'Upload Nuget packages'
# uses: actions/upload-artifact@v3
# with:
# name: Nuget
# path: dist/packages/*.nupkg