Skip to content

Commit 7178d0c

Browse files
committed
Build at the beginning of the workflow
1 parent d6ceefa commit 7178d0c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ jobs:
3131
run: echo "PACKAGE_VERSION=$(date +'%Y%m%d').${{ github.run_number }}.${{ github.run_attempt }}" >> $GITHUB_ENV
3232
shell: bash
3333

34+
- name: Restore dependencies
35+
run: dotnet restore
36+
37+
- name: Build
38+
run: dotnet build --configuration Release --no-restore --runtime win-x64
39+
40+
- name: Publish
41+
run: dotnet publish --configuration Release --output ./publish --runtime win-x64
42+
3443
- name: Install maven-repository-aws-s3 dependencies
3544
run: |
3645
HOME=$(dirname $(readlink -f $(which mvn)))
@@ -72,15 +81,6 @@ jobs:
7281
</settings>
7382
EOT
7483
shell: bash
75-
76-
- name: Restore dependencies
77-
run: dotnet restore
78-
79-
- name: Build
80-
run: dotnet build --configuration Release --no-restore --runtime win-x64
81-
82-
- name: Publish
83-
run: dotnet publish --configuration Release --output ./publish --runtime win-x64
8484

8585
- name: Build and push static web package
8686
run: |

0 commit comments

Comments
 (0)