Skip to content

Commit

Permalink
Add github release publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
ljubon authored Jan 30, 2024
1 parent 30bfa1f commit c7255bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dotnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,20 @@ jobs:
name: nuget-package
- name: Publish to NuGet
run: dotnet nuget push "ApiSurface.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

github-release:
runs-on: ubuntu-latest
if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }}
needs: [all-required-checks-complete]
environment: release
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download NuGet artifact
uses: actions/download-artifact@v4
with:
name: nuget-package
- uses: ncipollo/release-action@v1
with:
artifacts: "ApiSurface/bin/Release/ApiSurface.*.nupkg"

0 comments on commit c7255bc

Please sign in to comment.