Skip to content

Commit dfb594d

Browse files
facontidavideclaude
andcommitted
Upload AppImages to GitHub Release on tag push
- Add gh release upload step with --clobber for idempotency - Rename AppImage to include distro name for clarity - Add contents: write permission Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Entire-Checkpoint: 792abf06fbe4
1 parent 36b3471 commit dfb594d

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/appimage.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags: ['*']
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
concurrency:
912
group: ${{ github.workflow }}-${{ github.ref }}
1013
cancel-in-progress: true
@@ -98,7 +101,16 @@ jobs:
98101
--appdir AppDir \
99102
--output appimage
100103
104+
- name: Rename AppImage
105+
run: mv *.AppImage pj_bridge_ros2-${{ matrix.environment }}-x86_64.AppImage
106+
101107
- uses: actions/upload-artifact@v4
102108
with:
103109
name: appimage-${{ matrix.environment }}
104110
path: "*.AppImage"
111+
112+
- name: Upload to GitHub Release
113+
if: startsWith(github.ref, 'refs/tags/')
114+
run: gh release upload "${{ github.ref_name }}" *.AppImage --clobber
115+
env:
116+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)