Skip to content

Commit

Permalink
Use the default directory to restore packages in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
delatrie committed Mar 26, 2024
1 parent 1fd68dd commit 76b0ca8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Build
env:
SOLUTION_PATH: allure-csharp.sln
BUILD_CONFIGURATION: 'Release'
RESTORE_OUTPUT_PATH: 'packages'
PACKAGE_OUTPUT_PATH: 'artifacts'

on:
Expand Down Expand Up @@ -32,8 +31,7 @@ jobs:
- name: 'Restore packages'
run: |
dotnet restore ${{ env.SOLUTION_PATH }}\
--packages ${{ env.RESTORE_OUTPUT_PATH }}
dotnet restore ${{ env.SOLUTION_PATH }}
- name: 'Build project using dotnet'
run: |
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Publish
env:
SOLUTION_PATH: allure-csharp.sln
BUILD_CONFIGURATION: 'Publish'
RESTORE_OUTPUT_PATH: 'packages'
PACKAGE_OUTPUT_PATH: 'artifacts'

on:
Expand All @@ -25,8 +24,7 @@ jobs:
- name: 'Restore packages'
run: |
dotnet restore ${{ env.SOLUTION_PATH }}\
--packages ${{ env.RESTORE_OUTPUT_PATH }}
dotnet restore ${{ env.SOLUTION_PATH }}
- name: 'Build project using dotnet'
run: |
Expand All @@ -35,7 +33,8 @@ jobs:
--configuration ${{ env.BUILD_CONFIGURATION }}\
-p:ContinuousIntegrationBuild=true
# Lower AspectInjector requirement for users of the packages to workaround #391 (build crash on macOS arm machines)
# Lower AspectInjector requirement for users of the packages to
# workaround #391 (build crash on macOS arm machines)
- name: Reduce AspectInjector requirement to 2.8.1
run: |
dotnet add Allure.Net.Commons package AspectInjector --version 2.8.1
Expand All @@ -51,7 +50,7 @@ jobs:
- name: 'NuGet publish'
run: |
dotnet nuget push "*/${{ env.PACKAGE_OUTPUT_PATH }}/*.nupkg"\
dotnet nuget push "${{ env.PACKAGE_OUTPUT_PATH }}/*.nupkg"\
-k ${NUGET_TOKEN}\
-s https://api.nuget.org/v3/index.json
env:
Expand Down

0 comments on commit 76b0ca8

Please sign in to comment.