Skip to content

Commit 22b0794

Browse files
committed
refactor: Improve GitHub Release artifact upload process
This commit refactors the GitHub Actions workflow for creating releases to simplify and improve the artifact upload process. - Updates the `softprops/action-gh-release` step to automatically upload artifacts by using wildcard patterns (`*.dmg`, `*.msi`, etc.) directly in the current directory. - Removes the previous, more complex path specification for locating build artifacts. - Adds an `ls -R` command to list directory contents for easier debugging. - Configures the release to be created as a `draft`. - Ensures the release is tagged with the current Git reference name (`github.ref_name`).
1 parent 9b389fe commit 22b0794

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build-desktop.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,18 @@ jobs:
5151
name: build-${{ matrix.format }}
5252
path: composeApp/build/compose/binaries/**/${{ matrix.format }}/
5353

54+
- name: List artifacts
55+
run: ls -R
56+
5457
- name: Upload to GitHub Release
5558
uses: softprops/action-gh-release@v2
56-
if: startsWith(github.ref, 'refs/tags/')
5759
with:
5860
files: |
59-
composeApp/build/compose/binaries/**/${{ matrix.format }}/*
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61+
*.dmg
62+
*.msi
63+
*.rpm
64+
*.deb
65+
draft: true
66+
tag_name: ${{ github.ref_name }}
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)