Skip to content

Commit

Permalink
CI: Build Flatpak into different branches when publishing
Browse files Browse the repository at this point in the history
When publishing to Flathub, we want to publish the 'beta'
branch to the 'beta' repository, and the 'stable' branch
to the 'stable' repository. However, we currently publish
the 'master' branch for both.

Build the Flatpak manifest with different branches for each
repository.
  • Loading branch information
GeorgesStavracas committed Dec 30, 2021
1 parent b22392c commit b6e3a1f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
env:
FLATPAK_BUILD_PATH: flatpak_app/files/share
FLATHUB_REPOSITORY: beta
FLATHUB_BRANCH: beta
FLATHUB_TOKEN: ${{ secrets.FLATHUB_BETA_TOKEN }}
container:
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-21.08
Expand All @@ -82,6 +83,7 @@ jobs:
manifest-path: CI/flatpak/com.obsproject.Studio.json
cache-key: flatpak-builder-${{ github.sha }}
mirror-screenshots-url: https://dl.flathub.org/repo/screenshots
branch: ${{ env.FLATHUB_BRANCH }}

- name: Validate AppStream
shell: bash
Expand Down Expand Up @@ -116,6 +118,7 @@ jobs:
env:
FLATPAK_BUILD_PATH: flatpak_app/files/share
FLATHUB_REPOSITORY: stable
FLATHUB_BRANCH: stable
FLATHUB_TOKEN: ${{ secrets.FLATHUB_TOKEN }}
container:
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-21.08
Expand All @@ -133,6 +136,7 @@ jobs:
manifest-path: CI/flatpak/com.obsproject.Studio.json
cache-key: flatpak-builder-${{ github.sha }}
mirror-screenshots-url: https://dl.flathub.org/repo/screenshots
branch: ${{ env.FLATHUB_BRANCH }}

- name: Validate AppStream
shell: bash
Expand Down

0 comments on commit b6e3a1f

Please sign in to comment.