Merge pull request #209 from mk3008/208-dose-not-workparse-postgres-j… #53
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: 6.0.x | |
- name: Build | |
run: dotnet build --configuration Release | |
working-directory: ./src/Carbunql.Dapper | |
- name: Generate nuget package. | |
run: dotnet pack --configuration Release -o nupkg | |
working-directory: ./src/Carbunql.Dapper | |
- 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.Dapper/nupkg |