Skip to content

Commit

Permalink
Added a new step to the build workfow to build and publish a nuget pa…
Browse files Browse the repository at this point in the history
…ckage (#563)

Co-authored-by: Farshad DASHTI <[email protected]>
  • Loading branch information
FrostyApeOne and Farshad DASHTI authored Aug 14, 2024
1 parent f181394 commit 4a26873
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/continuous-integration-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,21 @@ jobs:
reportgenerator -reports:./**/coverage.cobertura.xml -targetdir:./CoverageReport -reporttypes:SonarQube
dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
- uses: dorny/paths-filter@v3
id: person-api-changes
with:
filters: |
client:
- 'Dfe.PersonsApi.Client/**'
- name: Build, pack and publish
working-directory: Dfe.PersonsApi.Client
run: |
dotnet build -c Release
dotnet pack -c Release --no-build --output .
dotnet nuget push "*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/DFE-Digital/index.json
if: steps.person-api-changes.client.src == 'true'

- name: Stop containers
if: always()
run: docker compose -f "docker-compose.yml" down

0 comments on commit 4a26873

Please sign in to comment.