forked from dotnet/sign
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.07 KB
/
build.yaml
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
name: Build
on:
push:
branches: [master]
tags-ignore: ['**']
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
defaults:
run:
shell: pwsh
jobs:
build:
runs-on: windows-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install .NET
uses: actions/setup-dotnet@v4
- name: Restore
run: .\build.ps1 restore
- name: Build
run: .\build.ps1 build --skip restore
- name: Test
run: .\build.ps1 test --skip build
- name: Package
if: runner.os == 'Windows' && github.repository_owner == 'Faithlife' && github.ref == 'refs/heads/master'
env:
BUILD_BOT_PASSWORD: ${{ secrets.BUILD_BOT_PASSWORD }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: .\build.ps1 package --skip test
- name: Upload NuGet package
if: runner.os == 'Windows' && github.repository_owner == 'Faithlife' && github.ref == 'refs/heads/master'
uses: actions/upload-artifact@v4
with:
name: nupkg
path: release/*.nupkg