Skip to content

Commit 5f305b3

Browse files
committed
add separate restore step
1 parent b42e095 commit 5f305b3

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/branches.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ jobs:
2121
uses: actions/checkout@v2
2222
with:
2323
fetch-depth: 0
24+
- name: Install dependencies
25+
run: dotnet restore
2426
- name: Build solution
25-
run: dotnet build -c Release
27+
run: dotnet build -c Release --no-restore
2628
- name: Create NuGet packages
2729
run: dotnet pack -c Release --no-build -o nupkg
2830
- name: Upload nuget packages
@@ -38,12 +40,5 @@ jobs:
3840
steps:
3941
- name: Checkout
4042
uses: actions/checkout@v2
41-
- name: Download version info file
42-
uses: actions/download-artifact@v1
43-
with:
44-
name: gitversion
45-
path: ./
46-
- name: Inject version info into environment
47-
run: cat ./gitversion.env >> $GITHUB_ENV
4843
- name: Run tests
49-
run: echo "Current version is \"$GitVersion_SemVer\"" && dotnet test -c Release
44+
run: dotnet test -c Release

0 commit comments

Comments
 (0)