aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-30 00:20:44 -0400
committerTakoroka <137927095+Takoroka@users.noreply.github.com>2026-10-30 00:20:44 -0400
commitf0faf0f6d29ecfa2a244dcb2c73ca1a494afe75c (patch)
tree3464deda2dd05699e256f3f685e46c5fb59366aa /.github
parenta1d47717ae7f0445fb9d491a4d548aec17b1c053 (diff)
ci: upload the Windows build folder instead of a zip of it
GitHub zips every artifact on download, so the Windows artifact (itself a zip of build/release/bin) came out as a zip inside a zip. The bin folder is now the artifact; the release job zips it once for the release, and the AppImage is uploaded as is.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release-binaries.yml28
1 files changed, 23 insertions, 5 deletions
diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml
index f986f13b23..c840daf942 100644
--- a/.github/workflows/release-binaries.yml
+++ b/.github/workflows/release-binaries.yml
@@ -180,13 +180,24 @@ jobs:
}
}
windeployqt --release --no-translations build/release/bin/eglantine.exe
- Compress-Archive -Path build/release/bin/* -DestinationPath "eglantine-${env:GITHUB_SHA}-windows-x86_64.zip"
- - name: Upload binary
+ # The artifact is the bin folder itself: GitHub zips artifacts on download, and uploading a
+ # zip gave a zip inside a zip. The release job zips it once for the release.
+ - name: Upload Windows binary
+ if: matrix.platform == 'windows-x86_64'
uses: actions/upload-artifact@v4
with:
name: eglantine-${{ matrix.platform }}-${{ github.sha }}
- path: eglantine-${{ github.sha }}-${{ matrix.platform }}.*
+ path: build/release/bin/
+ if-no-files-found: error
+ retention-days: 7
+
+ - name: Upload Linux binary
+ if: matrix.platform == 'linux-x86_64'
+ uses: actions/upload-artifact@v4
+ with:
+ name: eglantine-${{ matrix.platform }}-${{ github.sha }}
+ path: eglantine-${{ github.sha }}-${{ matrix.platform }}.AppImage
if-no-files-found: error
compression-level: 0
retention-days: 7
@@ -205,8 +216,15 @@ jobs:
uses: actions/download-artifact@v4
with:
pattern: eglantine-*-${{ github.sha }}
- path: dist
- merge-multiple: true
+ path: artifacts
+
+ - name: Package release files
+ shell: bash
+ run: |
+ mkdir dist
+ (cd "artifacts/eglantine-windows-x86_64-${GITHUB_SHA}" &&
+ zip -qr "${GITHUB_WORKSPACE}/dist/eglantine-${GITHUB_SHA}-windows-x86_64.zip" .)
+ cp "artifacts/eglantine-linux-x86_64-${GITHUB_SHA}/eglantine-${GITHUB_SHA}-linux-x86_64.AppImage" dist/
- name: Create release
shell: bash