Merge pull request #6 from DevInsightForge/main #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and publish NuGet package to organization | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up NuGet CLI | |
uses: nuget/setup-nuget@v1 | |
- name: Build NuGet package | |
run: nuget pack | |
- name: Push NuGet package to organization | |
run: nuget push ./*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }} |