Skip to content

Commit a5297cb

Browse files
committed
Fix release workflow: add permissions and fix artifact paths
- Add 'contents: write' permission to allow creating releases - Use glob patterns (**) for artifact files to handle missing bundles - Add fail_on_unmatched_files: false to make missing files non-fatal - Upload entire bundle directories instead of specific file patterns - Add artifact listing step for debugging
1 parent f9c923d commit a5297cb

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
required: true
1212
type: string
1313

14+
permissions:
15+
contents: write
16+
1417
jobs:
1518
get-version:
1619
name: Get Version
@@ -127,8 +130,8 @@ jobs:
127130
name: budget-planer-windows
128131
path: |
129132
frontend/src-tauri/target/release/budget-planer.exe
130-
frontend/src-tauri/target/release/bundle/msi/*.msi
131-
frontend/src-tauri/target/release/bundle/nsis/*.exe
133+
frontend/src-tauri/target/release/bundle/
134+
if-no-files-found: warn
132135

133136
build-macos:
134137
name: Build macOS
@@ -171,8 +174,8 @@ jobs:
171174
name: budget-planer-macos
172175
path: |
173176
frontend/src-tauri/target/release/budget-planer
174-
frontend/src-tauri/target/release/bundle/dmg/*.dmg
175-
frontend/src-tauri/target/release/bundle/macos/Budget Planer.app
177+
frontend/src-tauri/target/release/bundle/
178+
if-no-files-found: warn
176179

177180
publish-release:
178181
name: Publish Release
@@ -197,21 +200,28 @@ jobs:
197200
name: budget-planer-macos
198201
path: artifacts/macos
199202

203+
- name: List artifacts
204+
run: |
205+
echo "=== Linux artifacts ==="
206+
find artifacts/linux -type f 2>/dev/null || echo "No Linux artifacts found"
207+
echo ""
208+
echo "=== Windows artifacts ==="
209+
find artifacts/windows -type f 2>/dev/null || echo "No Windows artifacts found"
210+
echo ""
211+
echo "=== macOS artifacts ==="
212+
find artifacts/macos -type f 2>/dev/null || echo "No macOS artifacts found"
213+
200214
- name: Create and publish release
201215
uses: softprops/action-gh-release@v2
202216
with:
203217
tag_name: ${{ needs.get-version.outputs.version }}
204218
name: Release ${{ needs.get-version.outputs.version }}
205219
files: |
206-
artifacts/linux/budget-planer
207-
artifacts/linux/*.deb
208-
artifacts/windows/budget-planer.exe
209-
artifacts/windows/*.msi
210-
artifacts/windows/*.exe
211-
artifacts/macos/budget-planer
212-
artifacts/macos/*.dmg
213-
artifacts/macos/*.app
220+
artifacts/linux/**
221+
artifacts/windows/**
222+
artifacts/macos/**
214223
draft: false
215224
prerelease: false
225+
fail_on_unmatched_files: false
216226
env:
217227
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)