diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f339591..6147cf4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,24 +10,33 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 steps: + - name: Checkout uses: actions/checkout@v3 with: fetch-depth: 0 + - name: Verify commit exists in origin/main run: git branch --remote --contains | grep origin/main + - name: Extract release notes run: | git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' > RELEASE-NOTES + - name: Set VERSION variable from tag run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV + - name: Build run: dotnet build -c Release /p:Version=${VERSION} + - name: Test run: dotnet test -c Release /p:Version=${VERSION} --no-build + - name: Pack run: dotnet pack -c Release /p:Version=${VERSION} --no-build --output . - - name: Push - run: dotnet nuget push **\*.nupkg --source https://nuget.pkg.github.com/kwtc/index.json --api-key ${GITHUB_TOKEN} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + + - name: Push package to Nuget.org + run: dotnet nuget push **\*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json + + - name: Push package to Github + run: dotnet nuget push **\*.nupkg --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/kwtc/index.json \ No newline at end of file diff --git a/Kwtc.Persistence/Kwtc.Persistence.csproj b/Kwtc.Persistence/Kwtc.Persistence.csproj index d4134e3..f41436d 100644 --- a/Kwtc.Persistence/Kwtc.Persistence.csproj +++ b/Kwtc.Persistence/Kwtc.Persistence.csproj @@ -9,9 +9,11 @@ Kwtc.Persistence - 2.0.1 Kasper Christiansen - https://github.com/kwtc/kwtc-persistence + https://github.com/kwtc/persistence + https://github.com/kwtc/persistence + A collection of utilities for working with persistence in .NET using Dapper. + MySQL SQLite MSSQL Dapper In-memory-database Dbconnection