Skip to content

Commit

Permalink
CI/Flatpak: Push to Flathub
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed May 9, 2024
1 parent c015039 commit 0a63bec
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/rolling-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: stable
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 stable

This comment has been minimized.

Copy link
@barthalion

barthalion May 9, 2024

I wish you had given me a heads-up about Duckstation switching to direct uploads, instead of learning about it from the moderation dashboard…

This comment has been minimized.

Copy link
@stenzek

stenzek May 9, 2024

Author Owner

You didn't have to approve it if it wasn't ready :)

if: github.ref == 'refs/heads/dev'

This comment has been minimized.

Copy link
@barthalion

barthalion May 9, 2024

Any chance this is changed to a nightly build? We don't have unlimited disk space to accommodate every commit being built and published.

This comment has been minimized.

Copy link
@stenzek

stenzek May 9, 2024

Author Owner

No, dev is the "stable" build, released every month or so. preview is the master branch, just unfortunately named because I can't break old installs from updating.

This comment has been minimized.

Copy link
@barthalion

barthalion May 9, 2024

Sounds good, was afraid it's a development branch. Thanks!

uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
with:
flat-manager-url: https://hub.flathub.org/
repository: stable
token: ${{ secrets.FLATHUB_STABLE_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
Expand Down
5 changes: 5 additions & 0 deletions scripts/org.duckstation.DuckStation.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@
<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/stenzek/duckstation/md-images/main-qt.png</image>
<caption>Desktop Interface</caption>
</screenshot>
<screenshot>
<image>https://raw.githubusercontent.com/stenzek/duckstation/md-images/bigduck.png</image>
<caption>Big Picture Mode Interface</caption>
</screenshot>
</screenshots>
<releases>
<release version="@GIT_VERSION@" date="@GIT_DATE@" />
</releases>
<custom>
<value key="flathub::manifest">https://raw.githubusercontent.com/stenzek/duckstation/@GIT_HASH@/scripts/flatpak/org.duckstation.DuckStation.json</value>
</custom>
</component>

0 comments on commit 0a63bec

Please sign in to comment.