forked from open-telemetry/opentelemetry-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.01 KB
/
dotnet-core.yml
File metadata and controls
46 lines (37 loc) · 1.01 KB
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
name: Pack and publish to Myget
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
schedule:
- cron: '0 0 * * *' # once every day at 00:00
jobs:
build-pack:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
branches: [master,metrics]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # fetching all
ref: ${{ matrix.branches }}
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Install dependencies
run: dotnet restore
- name: dotnet build
run: dotnet build --configuration Release --no-restore -p:Deterministic=true
- name: dotnet pack
run: dotnet pack OpenTelemetry.proj --configuration Release --no-build
- name: Publish Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-packages
path: '**/bin/**/*.*nupkg'