Skip to content

Commit 73a44ce

Browse files
committed
Changing workflows
1 parent 49d21ec commit 73a44ce

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/cd.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11-
11+
env:
12+
GEMINI_KEY: ${{ secrets.GEMINI_KEY }}
1213
steps:
1314
- name: Checkout code
1415
uses: actions/checkout@v3
@@ -24,12 +25,13 @@ jobs:
2425
- name: Build project
2526
run: dotnet build --configuration Release --no-restore
2627

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

30-
- name: Add GitHub NuGet source
31-
run: dotnet nuget add source "https://nuget.pkg.github.com/01Dri/index.json" --name "github" --username "01Dri" --password "${{ secrets.NUGET_GITHUB_TOKEN }}" --store-password-in-clear-text
3231

33-
- name: Publish to GitHub Packages (NuGet)
34-
run: dotnet nuget push **/bin/Release/*.nupkg --source "github" --api-key "${{ secrets.NUGET_GITHUB_TOKEN }}"
32+
- name: Publish to NuGet
33+
env:
34+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
35+
run: |
36+
dotnet nuget push **/bin/Release/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json
3537

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
env:
12+
GEMINI_KEY: ${{ secrets.GEMINI_KEY }}
1113
steps:
1214
- name: Checkout code
1315
uses: actions/checkout@v3

0 commit comments

Comments
 (0)