Skip to content

Commit 29880d3

Browse files
committed
refactor: Update GitHub Actions workflow for release artifacts
This commit refactors the `build-desktop.yml` workflow to streamline the release process. - Updates the `Check build output` step to correctly locate binaries in `composeApp/build/compose/binaries`. - Replaces the `actions/upload-artifact` step with `softprops/action-gh-release`. - Configures the new step to automatically upload build artifacts directly to a GitHub Release when a tag is pushed.
1 parent c8933f6 commit 29880d3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

.github/workflows/build-desktop.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ jobs:
4343
run: ./gradlew ${{ matrix.gradle_task }} --stacktrace
4444

4545
- name: Check build output
46-
run: ls -R build/compose/binaries || true
46+
run: ls -R composeApp/build/compose/binaries || true
4747

48-
- name: Upload artifact
49-
uses: actions/upload-artifact@v4
48+
- name: Upload to GitHub Release
49+
uses: softprops/action-gh-release@v2
50+
if: startsWith(github.ref, 'refs/tags/')
5051
with:
51-
name: build-${{ matrix.format }}
52-
path: composeApp/build/compose/binaries/**/${{ matrix.format }}/
52+
files: |
53+
composeApp/build/compose/binaries/**/${{ matrix.format }}/*
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)