Skip to content

Commit 286fede

Browse files
committed
artifact rename fix 2#
1 parent 2789a37 commit 286fede

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
"steps":
88
- "uses": "actions/checkout@main"
99
- "run": "cmd.exe /c .github\\workflows\\build_run_win_64_debug.bat"
10-
- name: List build output
11-
shell: pwsh
12-
run: |
13-
Get-ChildItem -Recurse build | Select-Object FullName
1410
- name: Rename binary with commit info
1511
shell: pwsh
1612
run: |
@@ -27,10 +23,6 @@
2723
"steps":
2824
- "uses": "actions/checkout@main"
2925
- "run": "cmd.exe /c .github\\workflows\\build_run_win_32_debug.bat"
30-
- name: List build output
31-
shell: pwsh
32-
run: |
33-
Get-ChildItem -Recurse build | Select-Object FullName
3426
- name: Rename binary with commit info
3527
shell: pwsh
3628
run: |
@@ -47,17 +39,13 @@
4739
"steps":
4840
- "uses": "actions/checkout@main"
4941
- "run": "cmd.exe /c .github\\workflows\\build_run_win_32_release.bat"
50-
- name: List build output
51-
shell: pwsh
52-
run: |
53-
Get-ChildItem -Recurse build | Select-Object FullName
5442
- name: Rename binary with commit info
5543
shell: pwsh
5644
run: |
5745
$shortSha = "${{ github.sha }}".Substring(0,12)
5846
echo "SHORT_SHA=$shortSha" >> $env:GITHUB_ENV
5947
$run = "${{ github.run_number }}"
60-
Rename-Item build\Debug\vmaware.exe "vmaware_${run}_${shortSha}.exe"
48+
Rename-Item build\Release\vmaware.exe "vmaware_${run}_${shortSha}.exe"
6149
- "uses": "actions/upload-artifact@main"
6250
"with":
6351
"path": build\Release\vmaware_${{ github.run_number }}_${{ github.shortSha }}.exe
@@ -67,17 +55,13 @@
6755
"steps":
6856
- "uses": "actions/checkout@main"
6957
- "run": "cmd.exe /c .github\\workflows\\build_run_win_64_release.bat"
70-
- name: List build output
71-
shell: pwsh
72-
run: |
73-
Get-ChildItem -Recurse build | Select-Object FullName
7458
- name: Rename binary with commit info
7559
shell: pwsh
7660
run: |
7761
$shortSha = "${{ github.sha }}".Substring(0,12)
7862
echo "SHORT_SHA=$shortSha" >> $env:GITHUB_ENV
7963
$run = "${{ github.run_number }}"
80-
Rename-Item build\Debug\vmaware.exe "vmaware_${run}_${shortSha}.exe"
64+
Rename-Item build\Release\vmaware.exe "vmaware_${run}_${shortSha}.exe"
8165
- "uses": "actions/upload-artifact@main"
8266
"with":
8367
"path": build\Release\vmaware_${{ github.run_number }}_${{ github.shortSha }}.exe

0 commit comments

Comments
 (0)