csharpfritz / InstantAPIs

A library that generates Minimal API endpoints for an Entity Framework context.
MIT License
447 stars 57 forks source link

GitHub action to publish to NuGet #8

Closed csharpfritz closed 2 years ago

csharpfritz commented 2 years ago
timheuer commented 2 years ago

For the second task of push of course you'll need your API key but simple: https://github.com/timheuer/alexa-skills-dotnet/blob/master/.github/workflows/build.yml#L108-L109 (assume no signing)

csharpfritz commented 2 years ago

I'm also going to make the main branch protected and establish a dev branch for collaboration

timheuer commented 2 years ago

Smart. FWIW, I usually have two workflows: "ci" and "build/publish" -- it may be duplicative (you can now use composites) but it also avoids a lot of if: stuff...I'm happy to contribute the separation with composite actions for the common.

csharpfritz commented 2 years ago

Now I'm thinking... keep main as the default branch, and add a release branch and when a PR is merged there the release and publish to NuGet is done. Then the action only happens on that branch, and both main and release are protected

csharpfritz commented 2 years ago

Done.. PRs to release are built and tested. When merged, the content of the release branch is sent to NuGet