Merge pull request #549 from mk3008/546-request-support-for-parsing-d… #230
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: Publish - Nuget | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build | |
run: dotnet build --configuration Release | |
working-directory: ./src/Carbunql | |
- name: Generate nuget package. | |
run: dotnet pack --configuration Release -o nupkg | |
working-directory: ./src/Carbunql | |
- name: Publish to nuget | |
run: find . -type f -name *.nupkg -print0 | xargs -0 -I pkg dotnet nuget push pkg -k $nuget_api_key -s "https://api.nuget.org/v3/index.json" --skip-duplicate | |
env: | |
nuget_api_key: ${{ secrets.NUGET_API_KEY }} | |
working-directory: ./src/Carbunql/nupkg |