Skip to content

Publish MyGet Packages #18

Publish MyGet Packages

Publish MyGet Packages #18

Workflow file for this run

name: Publish MyGet Packages
on:
push:
tags:
- 'myget-v*'
env:
DOTNET_VERSION: "7.0.400" # The .NET SDK version to use
jobs:
publish_upload:
name: Publish MyGet Packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install buildtools
run: dotnet tool restore
- name: Install dependencies
run: dotnet paket restore
- name: Pack and upload NuGet package
run: |
dotnet pack -c Release
dotnet nuget push Aurum/bin/Release/*.nupkg --skip-duplicate --no-symbols -s -k ${{ secrets.MYGET_API_KEY }}
dotnet nuget push Aurum.*/bin/Release/*.nupkg --skip-duplicate --no-symbols -s -k ${{ secrets.MYGET_API_KEY }}