Skip to content

Commit ccbc008

Browse files
committed
ci(build): reorganize binary artifacts into dist directory
1 parent 1b67c98 commit ccbc008

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ jobs:
6969
with:
7070
path: artifacts
7171

72-
# Rename binaries so they don't overwrite each other
72+
# Rename binaries into dist/ with platform-specific names
7373
- name: Rename binaries
7474
run: |
75-
mv artifacts/watchdog-linux/watchdog artifacts/watchdog-linux
76-
mv artifacts/watchdog-windows/watchdog.exe artifacts/watchdog-windows.exe
77-
mv artifacts/watchdog-macos/watchdog artifacts/watchdog-macos
75+
mkdir dist
76+
cp artifacts/watchdog-linux/watchdog dist/watchdog-linux
77+
cp artifacts/watchdog-windows/watchdog.exe dist/watchdog-windows.exe
78+
cp artifacts/watchdog-macos/watchdog dist/watchdog-macos
7879
7980
- name: Create GitHub Release
8081
uses: softprops/action-gh-release@v2
@@ -99,8 +100,8 @@ jobs:
99100
watchdog --help
100101
```
101102
files: |
102-
artifacts/watchdog-linux
103-
artifacts/watchdog-windows.exe
104-
artifacts/watchdog-macos
103+
dist/watchdog-linux
104+
dist/watchdog-windows.exe
105+
dist/watchdog-macos
105106
draft: false
106107
prerelease: false

0 commit comments

Comments
 (0)