Skip to content

v8.1.0

v8.1.0 #57

Workflow file for this run

name: Publish using .NET Core
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Pack with dotnet
run: dotnet pack --include-symbols --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: release
path: SlimLib.Microsoft.Graph/bin/Release
- name: Push with dotnet nuget
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: |
$file = Get-ChildItem -File SlimLib.Microsoft.Graph/bin/Release/SlimLib.Microsoft.Graph.*.symbols.nupkg
dotnet nuget push "$file" -s "https://api.nuget.org/v3/index.json" -k "$env:NUGET_API_KEY"