From 8150b32dd633a693d8b0289caffc0d5355afaa2d Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 9 May 2024 16:03:08 +1000 Subject: [PATCH] CI/Flatpak: Push to Flathub --- .github/workflows/rolling-release.yml | 21 ++++++++++++------- ...rg.duckstation.DuckStation.metainfo.xml.in | 5 +++++ 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rolling-release.yml b/.github/workflows/rolling-release.yml index f36fe942a..2411ca04b 100644 --- a/.github/workflows/rolling-release.yml +++ b/.github/workflows/rolling-release.yml @@ -315,17 +315,24 @@ jobs: arch: x86_64 build-bundle: true verbose: true - #mirror-screenshots-url: https://dl.flathub.org/media - #branch: ${{ inputs.branch }} - branch: master + mirror-screenshots-url: https://dl.flathub.org/media + branch: beta cache: true restore-cache: true cache-key: flatpak-x64-${{ hashFiles('scripts/flatpak/**/*.json') }} - # fails due to screenshots.. - #- name: Validate build - # run: | - # flatpak-builder-lint repo repo + - name: Push to Flathub + #if: github.ref == 'refs/heads/dev' + uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8 + with: + flat-manager-url: https://hub.flathub.org/ + repository: beta + token: ${{ secrets.FLATHUB_BETA_TOKEN }} + build-log-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} + + - name: Validate build + run: | + flatpak-builder-lint repo repo - name: Upload Flatpak uses: actions/upload-artifact@v1 diff --git a/scripts/org.duckstation.DuckStation.metainfo.xml.in b/scripts/org.duckstation.DuckStation.metainfo.xml.in index 0d5ea193e..435dbbb04 100644 --- a/scripts/org.duckstation.DuckStation.metainfo.xml.in +++ b/scripts/org.duckstation.DuckStation.metainfo.xml.in @@ -20,12 +20,17 @@ https://raw.githubusercontent.com/stenzek/duckstation/md-images/main-qt.png + Desktop Interface https://raw.githubusercontent.com/stenzek/duckstation/md-images/bigduck.png + Big Picture Mode Interface + + https://raw.githubusercontent.com/stenzek/duckstation/@GIT_HASH@/scripts/flatpak/org.duckstation.DuckStation.json +