Skip to content

Merge pull request #562 from mk3008/library #235

Merge pull request #562 from mk3008/library

Merge pull request #562 from mk3008/library #235

name: 'Publish - Nuget Carbunql.Dapper'
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 10
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.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