diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index cdb740f..a096cbf 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -23,13 +23,13 @@ jobs: - name: Build project run: dotnet build --configuration Release --no-restore -# - name: Run tests - # run: dotnet test --filter "FullyQualifiedName~MapperIA.Tests.Mappers.ClassMapper.ClassMapperTests | FullyQualifiedName~MapperIA.Tests.Mappers.PDFMapper.PDFMapperTests" +# - name: Run tests +# run: dotnet test --filter "FullyQualifiedName~MapperIA.Tests.Mappers.ClassMapper.ClassMapperTests | FullyQualifiedName~MapperIA.Tests.Mappers.PDFMapper.PDFMapperTests" - - - name: Publish to NuGet + - name: Publish to GitHub NuGet + run: dotnet nuget push **/bin/Release/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} env: - NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }} - run: | - dotnet nuget push **/bin/Release/*.nupkg --api-key $GITHUB_TOKEN --source https://nuget.pkg.github.com/01Dri/index.json" + NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Add GitHub NuGet source + run: dotnet nuget add source https://nuget.pkg.github.com/01Dri/index.json --name github --username 01Dri --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text