forked from pipeline-foundation/xunit
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (46 loc) · 1.24 KB
/
push-main.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
44
45
46
47
48
49
50
51
52
53
name: xUnit.net CI Build
on:
push:
branches:
- main
- 'rel/**'
workflow_dispatch:
jobs:
build:
name: "CI Build"
runs-on: ubuntu-18.04
env:
DOTNET_NOLOGO: true
steps:
- name: Clone source
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET Core SDK 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Install .NET SDK 5.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Get .NET information
run: dotnet --info
- name: "Build target: CI"
env:
PublishToken: ${{ secrets.PublishToken }}
SignClientUser: ${{ secrets.SignClientUser }}
SignClientSecret: ${{ secrets.SignClientSecret }}
run: dotnet run --project tools/builder --no-launch-profile -- CI --timing
- name: "Upload artifact: test"
uses: actions/upload-artifact@v2
with:
name: test
path: artifacts/test
if: always()
- name: "Upload artifact: packages"
uses: actions/upload-artifact@v2
with:
name: packages
path: artifacts/packages
if: always()