Skip to content

Commit cddf6e5

Browse files
authored
Update build.yml
1 parent 57b6a8f commit cddf6e5

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ jobs:
1515
uses: warrenbuckley/Setup-MSBuild@v1
1616
- name: Build with MSBuild
1717
run: msbuild ysoserial.sln -p:Configuration=Release
18+
- name: Prepare build artifact for stashing
19+
run: |
20+
mkdir release
21+
move D:\a\ysoserial.net\ysoserial.net\ysoserial\bin\Release .\release
1822
- name: Upload artifact
1923
uses: actions/[email protected]
2024
with:
2125
name: ysoserial-${{ github.sha }}
22-
path: D:\a\ysoserial.net\ysoserial.net\ysoserial\bin\Release\
26+
path: .\release
2327

2428
# A Github release is created whenever the git reference contains a tag, starting with 'v*' (e.g. v0.4.2)
2529
# And the previous build jobs have been successful
@@ -28,20 +32,6 @@ jobs:
2832
needs: build
2933
if: startsWith(github.ref, 'refs/tags/v')
3034
steps:
31-
- uses: actions/checkout@v1
32-
- name: Setup Nuget.exe
33-
uses: warrenbuckley/Setup-Nuget@v1
34-
- name: Restore packages
35-
run: nuget restore ysoserial.sln
36-
- name: Setup MSBuild.exe
37-
uses: warrenbuckley/Setup-MSBuild@v1
38-
- name: Build with MSBuild
39-
run: msbuild ysoserial.sln -p:Configuration=Release
40-
- name: Upload artifact
41-
uses: actions/[email protected]
42-
with:
43-
name: ysoserial-${{ github.sha }}
44-
path: D:\a\ysoserial.net\ysoserial.net\ysoserial\bin\Release\
4535
- name: Create Release
4636
id: create_release
4737
uses: actions/create-release@v1
@@ -62,7 +52,7 @@ jobs:
6252
uses: actions/upload-artifact@v1
6353
with:
6454
name: release-url
65-
path: D:\a\ysoserial.net\ysoserial.net\ysoserial\bin\Release\
55+
path: .\release
6656

6757
# In this job we upload the release artifacts to the corresponding release
6858
upload:

0 commit comments

Comments
 (0)