Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Publish NuGet Package #3

Publish NuGet Package

Publish NuGet Package #3

Workflow file for this run

name: Publish NuGet Package
on:
release:
types:
- published
jobs:
build-and-publish-nuget:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/EducationTrail_CORE
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build and Pack NuGet Package
run: dotnet pack --configuration Release --output ./dist
- name: Move to Dist Directory
run: cd dist
- name: Publish Package to GitHub Packages
run: dotnet nuget push *.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}