Skip to content

build: Switch from YAML format for sources list to JSON format #66

build: Switch from YAML format for sources list to JSON format

build: Switch from YAML format for sources list to JSON format #66

Workflow file for this run

name: Flatpak CI
on:
push:
pull_request:
jobs:
build-linux:
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: com.pojtinger.felicitas.Multiplex.flatpak
manifest-path: com.pojtinger.felicitas.Multiplex.json
cache-key: flatpak-builder-${{ github.sha }}
- name: Extract branch name
id: extract_branch
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
- name: Publish pre-release to GitHub releases
if: ${{ github.ref == 'refs/heads/main' }}
uses: softprops/action-gh-release@v2
with:
tag_name: release-${{ steps.extract_branch.outputs.branch }}
prerelease: true
files: |
*.flatpak
- name: Publish release to GitHub releases
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
prerelease: false
files: |
*.flatpak