39 lines
979 B
YAML
39 lines
979 B
YAML
name: Pack and publish to Myget
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *' # once in a day at 00:00
|
|
|
|
jobs:
|
|
build-pack:
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0 # fetching all
|
|
|
|
- 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'
|
|
|
|
- name: Publish MyGet
|
|
run: |
|
|
nuget setApiKey ${{ secrets.MYGET_TOKEN }} -Source https://www.myget.org/F/opentelemetry/api/v2/package
|
|
nuget push **/bin/**/*.nupkg -Source https://www.myget.org/F/opentelemetry/api/v2/package
|