Skip to content

Commit e07f667

Browse files
committed
fix: complete workflow with proper release assets preparation
1 parent fd740b2 commit e07f667

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/build-release.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111

1212
env:
1313
APP_NAME: filefind
14-
# Note: github.ref_name will include the 'v' for tags, e.g., 'v1.1.3'
15-
# The version step below will handle removing it for the package version number.
1614
VERSION: ${{ github.ref_name }}
1715

1816
permissions:
@@ -131,9 +129,6 @@ jobs:
131129
Homepage: https://github.com/NDXDeveloper/FileFind
132130
EOF
133131
134-
# The postinst and prerm scripts are removed as they are no longer needed.
135-
# dpkg triggers will handle icon cache and desktop database updates automatically.
136-
137132
- name: Build DEB package
138133
run: |
139134
dpkg-deb --build package
@@ -337,6 +332,34 @@ jobs:
337332
src/filefind.exe
338333
retention-days: 30
339334

335+
create-release:
336+
runs-on: ubuntu-latest
337+
needs: [build-linux, build-windows]
338+
if: github.event_name == 'release' || startsWith(github.ref, 'refs/tags/')
339+
340+
steps:
341+
- name: Checkout code
342+
uses: actions/checkout@v4
343+
344+
- name: Download all artifacts
345+
uses: actions/download-artifact@v4
346+
347+
- name: Prepare release assets
348+
run: |
349+
mkdir -p release-assets
350+
351+
# Copy Linux builds
352+
cp linux-builds/*.deb release-assets/
353+
cp linux-builds/*.tar.gz release-assets/
354+
355+
# Copy Windows builds
356+
cp windows-builds/*.exe release-assets/
357+
cp windows-builds/*.zip release-assets/
358+
359+
# Create checksums
360+
cd release-assets
361+
sha256sum * > checksums.txt
362+
340363
- name: Create Release
341364
uses: softprops/action-gh-release@v1
342365
with:

0 commit comments

Comments
 (0)