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

v0.0.1 - Developer Release #6

v0.0.1 - Developer Release

v0.0.1 - Developer Release #6

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: Add GitHub Nuget Source
run: dotnet nuget add source --username ntohq --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/ntohq/index.json"
- name: Build and Pack NuGet Package
run: dotnet pack --configuration Release --output ./dist
- name: Publish Package to GitHub Packages
run: |
cd dist
dotnet nuget push *.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}