-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 899 Bytes
/
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
name: Build & Publish
on:
push:
pull_request:
jobs:
build:
runs-on: windows-latest
env:
DOTNET_NOLOGO: true
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Install .NET 7
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7'
- name: Build, Test, Pack, Publish
shell: bash
run: |
dotnet tool install -g dotnet-releaser
dotnet-releaser run --nuget-token "${{secrets.NUGET_TOKEN}}" --github-token "${{secrets.GITHUB_TOKEN}}" src/dotnet-releaser.toml
- name: Upload build artifacts
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: build-artifacts
path: src/artifacts-dotnet-releaser