Skip to content

Commit 3997ee3

Browse files
authored
Merge pull request #1 from 01Dri/01Dri-patch-1
Update cd.yml
2 parents cc9a6a2 + 55ca280 commit 3997ee3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/cd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
- name: Build project
2424
run: dotnet build --configuration Release --no-restore
2525

26-
# - name: Run tests
27-
# run: dotnet test --filter "FullyQualifiedName~MapperIA.Tests.Mappers.ClassMapper.ClassMapperTests | FullyQualifiedName~MapperIA.Tests.Mappers.PDFMapper.PDFMapperTests"
26+
# - name: Run tests
27+
# run: dotnet test --filter "FullyQualifiedName~MapperIA.Tests.Mappers.ClassMapper.ClassMapperTests | FullyQualifiedName~MapperIA.Tests.Mappers.PDFMapper.PDFMapperTests"
2828

29-
30-
- name: Publish to NuGet
29+
- name: Publish to GitHub NuGet
30+
run: dotnet nuget push **/bin/Release/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}
3131
env:
32-
NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
33-
run: |
34-
dotnet nuget push **/bin/Release/*.nupkg --api-key $GITHUB_TOKEN --source https://nuget.pkg.github.com/01Dri/index.json"
32+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3533

34+
- name: Add GitHub NuGet source
35+
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

0 commit comments

Comments
 (0)