Skip to content

Commit 0a378a2

Browse files
Merge pull request #36 from supervoidcoder/copilot/fix-release-yml-binaries-again
Fix release workflow artifact glob pattern for binary uploads
2 parents 9d2c015 + a7ffc43 commit 0a378a2

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@ jobs:
254254
- name: List artifacts
255255
run: ls -R artifacts
256256

257+
- name: Flatten artifact directory structure
258+
run: |
259+
set -e
260+
echo "Flattening artifact directory structure..."
261+
find artifacts -name "*.exe" -type f -exec mv -n {} artifacts/ \;
262+
echo "Removing empty subdirectories..."
263+
find artifacts -mindepth 1 -type d -delete || echo "Warning: Failed to delete some subdirectories in artifacts/ - this may indicate remaining files or permission issues"
264+
echo "Flattened artifacts directory:"
265+
ls -la artifacts/
266+
257267
- name: Checkout repository for tagging
258268
uses: actions/checkout@v4
259269
with:
@@ -298,7 +308,7 @@ jobs:
298308
tag_name: ${{ needs.prepare.outputs.version }}
299309
name: win-witr ${{ needs.prepare.outputs.version }}
300310
body: ${{ needs.prepare.outputs.notes }}
301-
files: artifacts/**/*.exe
311+
files: artifacts/*.exe
302312
draft: false
303313
prerelease: true
304314
env:

main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <iomanip>
1616
#include <sstream>
1717
#include <ctime>
18-
#include <algorithm>
18+
#include <algorithm>
1919

2020
#define windows_time_to_unix_epoch(x) ((x) - 116444736000000000LL) / 10000000LL
2121
// The above macro converts Windows FILETIME to Unix epoch time in seconds.

0 commit comments

Comments
 (0)