Skip to content

Commit 3b427db

Browse files
committed
ci: single file publish
1 parent 00fdc1b commit 3b427db

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
uses: actions/upload-artifact@v4
6060
with:
6161
name: hypr-${{ matrix.name }}
62-
path: ./publish/${{ matrix.name }}/
62+
path: ./publish/${{ matrix.name }}/hypr${{ contains(matrix.name, 'windows') && '.exe' || '' }}
6363

6464
build-dotnet-tool:
6565
runs-on: ubuntu-latest
@@ -108,12 +108,15 @@ jobs:
108108
with:
109109
path: ./artifacts
110110

111-
- name: Create archives
111+
- name: Prepare release files
112112
run: |
113113
cd artifacts
114-
for dir in hypr-*; do
115-
if [ -d "$dir" ]; then
116-
tar -czf "${dir}.tar.gz" -C "$dir" .
114+
# Files are already single executables, just rename them appropriately
115+
for file in hypr-*; do
116+
if [ -f "$file" ]; then
117+
if [[ "$file" == *"windows"* ]]; then
118+
mv "$file" "${file}.exe"
119+
fi
117120
fi
118121
done
119122
@@ -123,7 +126,7 @@ jobs:
123126
tag_name: v${{ env.VERSION }}
124127
name: Release v${{ env.VERSION }}
125128
files: |
126-
artifacts/*.tar.gz
129+
artifacts/hypr-*
127130
artifacts/dotnet-tool/*.nupkg
128131
generate_release_notes: true
129132
env:

0 commit comments

Comments
 (0)