Publish Packages #8
This file contains hidden or 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: Publish Packages | |
on: | |
workflow_dispatch | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 9.0.* | |
- name: Test | |
run: dotnet test --verbosity normal | |
- name: Package library | |
run: dotnet pack src/Mappit.Generator/Mappit.Generator.csproj --output nuget-packages --configuration Release | |
- name: Push library package | |
run: dotnet nuget push nuget-packages/Mappit.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate |