v12.4.0 #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Pack with dotnet | |
run: dotnet pack --include-symbols --configuration Release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
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" |