1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-05-24 00:56:57 -04:00
sdrangel/.github/workflows/flatpak.yml
copilot-swe-agent[bot] 11858ebb0e
Fix Flatpak workflow tag parsing shell syntax
Agent-Logs-Url: https://github.com/f4exb/sdrangel/sessions/862cd268-1d4c-402d-b530-b2885bf6d153

Co-authored-by: srcejon <57259258+srcejon@users.noreply.github.com>
2026-05-17 08:55:11 +00:00

46 lines
1.3 KiB
YAML

name: SDRangel Flatpak build
on:
push:
branches:
- flatpak
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build_flatpak:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Get version
id: get_version
run: |
if [[ "${{ github.ref_name }}" == "flatpak" ]]; then
echo "version=${{ github.sha }}" >> "$GITHUB_OUTPUT"
else
echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"
fi
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: sdrangel-${{ steps.get_version.outputs.version }}-x86_64.flatpak
manifest-path: flatpak/org.sdrangel.SDRangel.yaml
cache-key: flatpak-builder-${{ github.sha }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: sdrangel-${{ steps.get_version.outputs.version }}-x86_64.flatpak
path: sdrangel-${{ steps.get_version.outputs.version }}-x86_64.flatpak
- name: Upload release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: sdrangel-${{ steps.get_version.outputs.version }}-x86_64.flatpak