diff --git a/.github/workflows/publish_package.yml b/.github/workflows/publish_package.yml new file mode 100644 index 0000000..d2f164e --- /dev/null +++ b/.github/workflows/publish_package.yml @@ -0,0 +1,24 @@ +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 NueGet Package + run: dotnet pack --configuration Release --output ./output + - name: Publish Package to GitHub Packages + run: dotnet nuget push ./output.*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/EducationTrail_CORE.sln b/EducationTrail_CORE.sln new file mode 100644 index 0000000..e69de29