ci: update desktop-release workflow for v0.4.0 with attach_to_existing option

- Update default version to 0.4.0
- Add attach_to_existing input to add assets to existing releases
- Allows attaching Windows builds to v0.4.0-desktop release

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
Reuven 2026-03-09 22:01:33 -04:00
parent 0b98917dff
commit 56de77c0ad
1 changed files with 12 additions and 8 deletions

View File

@ -7,9 +7,13 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: 'Version to release (e.g., 0.3.0)' description: 'Version to release (e.g., 0.4.0)'
required: true required: true
default: '0.3.0' default: '0.4.0'
attach_to_existing:
description: 'Attach to existing release tag (leave empty to create new)'
required: false
default: ''
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -65,7 +69,7 @@ jobs:
- name: Package macOS app - name: Package macOS app
run: | run: |
cd rust-port/wifi-densepose-rs/target/${{ matrix.target }}/release/bundle/macos cd rust-port/wifi-densepose-rs/target/${{ matrix.target }}/release/bundle/macos
zip -r "RuView-Desktop-${{ github.event.inputs.version || '0.3.0' }}-macos-${{ steps.arch.outputs.arch }}.zip" "RuView Desktop.app" zip -r "RuView-Desktop-${{ github.event.inputs.version || '0.4.0' }}-macos-${{ steps.arch.outputs.arch }}.zip" "RuView Desktop.app"
- name: Upload macOS artifact - name: Upload macOS artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -136,21 +140,21 @@ jobs:
- name: List artifacts - name: List artifacts
run: find artifacts -type f run: find artifacts -type f
- name: Create Release - name: Create or Update Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
name: RuView Desktop v${{ github.event.inputs.version || '0.3.0' }} name: RuView Desktop v${{ github.event.inputs.version || '0.4.0' }}
tag_name: desktop-v${{ github.event.inputs.version || '0.3.0' }} tag_name: ${{ github.event.inputs.attach_to_existing || format('desktop-v{0}', github.event.inputs.version || '0.4.0') }}
draft: false draft: false
prerelease: false prerelease: false
generate_release_notes: true generate_release_notes: ${{ github.event.inputs.attach_to_existing == '' }}
files: | files: |
artifacts/**/*.zip artifacts/**/*.zip
artifacts/**/*.msi artifacts/**/*.msi
artifacts/**/*.exe artifacts/**/*.exe
artifacts/**/*.dmg artifacts/**/*.dmg
body: | body: |
## RuView Desktop v${{ github.event.inputs.version || '0.3.0' }} ## RuView Desktop v${{ github.event.inputs.version || '0.4.0' }}
WiFi-based human pose estimation desktop application. WiFi-based human pose estimation desktop application.