Skip to content

Commit

Permalink
Fix working directory in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FrediKats committed Dec 24, 2023
1 parent 5264e9b commit 013501b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,13 @@ jobs:
dotnet-version: ${{ env.dotnet-version }}

- name: Restore dependencies
run:
working-directory: ${{ env.working-directory }}
run: dotnet restore
working-directory: ${{ env.working-directory }}

- name: Build
run:
working-directory: ${{ env.working-directory }}
run: dotnet build -c Release --no-restore --verbosity normal
working-directory: ${{ env.working-directory }}

- name: Test
run:
working-directory: ${{ env.working-directory }}
run: dotnet test -c Release --no-build --verbosity normal
run: dotnet test -c Release --no-build --verbosity normal
working-directory: ${{ env.working-directory }}
17 changes: 6 additions & 11 deletions .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,21 @@ jobs:
dotnet-version: ${{ env.dotnet-version }}

- name: Restore dependencies
run:
working-directory: ${{ env.working-directory }}
run: dotnet restore
working-directory: ${{ env.working-directory }}

- name: Build
run:
working-directory: ${{ env.working-directory }}
run: dotnet build -c Release /p:ContinuousIntegrationBuild=true --no-restore --verbosity normal
working-directory: ${{ env.working-directory }}

- name: Test
run:
working-directory: ${{ env.working-directory }}
run: dotnet test -c Release --no-build --verbosity normal
working-directory: ${{ env.working-directory }}

- name: Publish to Nuget
run:
working-directory: ${{ env.working-directory }}
run: dotnet nuget push ${{ env.release-directory }}/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{ env.working-directory }}

- name: Publish to Nuget symbols
run:
working-directory: ${{ env.working-directory }}
run: dotnet nuget push ${{ env.release-directory }}/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
run: dotnet nuget push ${{ env.release-directory }}/*.snupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
working-directory: ${{ env.working-directory }}

0 comments on commit 013501b

Please sign in to comment.