Skip to content

Commit 478985e

Browse files
committed
Fix syntax.
1 parent 0413949 commit 478985e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ jobs:
2727
dotnet-version: 3.1.301
2828
- name: Install buildevents
2929
run: go get github.com/bgrainger/buildevents/
30-
- name: Build with dotnet
30+
- name: .NET Restore
3131
run: |
3232
STEP_START=$(date +%s)
33-
/home/runner/go/bin/buildevents cmd ${{ github.repository }}:${{ github.run_id }} build dotnet build --configuration Release
33+
/home/runner/go/bin/buildevents cmd ${{ github.repository }}:${{ github.run_id }} build build -- dotnet restore
3434
/home/runner/go/bin/buildevents step ${{ github.repository }}:${{ github.run_id }} build $STEP_START
35+
- name: .NET Build
36+
run: |
37+
STEP_START=$(date +%s)
38+
/home/runner/go/bin/buildevents cmd ${{ github.repository }}:${{ github.run_id }} restore restore -- dotnet build --configuration Release --no-restore
39+
/home/runner/go/bin/buildevents step ${{ github.repository }}:${{ github.run_id }} restore $STEP_START
3540
- name: Finish build
3641
run: |
3742
/home/runner/go/bin/buildevents build ${{ github.repository }}:${{ github.run_id }} $BUILD_START success

0 commit comments

Comments
 (0)