Skip to content

Commit 2d5faa6

Browse files
committed
CI: Default to flatpak beta branch
1 parent 1562ba4 commit 2d5faa6

File tree

3 files changed

+24
-12
lines changed

3 files changed

+24
-12
lines changed

.github/workflows/cron_publish_flatpak.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
compiler: clang
4444
cmakeflags: ""
4545
publish: true
46-
branch: stable
4746
fetchTags: true
47+
stableBuild: false
4848
secrets: inherit
4949

.github/workflows/linux_build_flatpak.yml

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ on:
2323
cmakeflags:
2424
required: true
2525
type: string
26-
branch:
27-
required: false
28-
type: string
29-
default: "stable"
3026
publish:
3127
required: false
3228
type: boolean
@@ -98,7 +94,8 @@ jobs:
9894
run: |
9995
flatpak-builder-lint manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
10096
101-
- name: Build Flatpak
97+
- name: Build Flatpak (beta)
98+
if: ${{ inputs.stableBuild == false || inputs.stableBuild == 'false' }}
10299
uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
103100
with:
104101
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
@@ -108,26 +105,42 @@ jobs:
108105
build-bundle: true
109106
verbose: true
110107
mirror-screenshots-url: https://dl.flathub.org/media
111-
branch: ${{ inputs.branch }}
108+
branch: beta
112109
cache: true
113110
restore-cache: true
114111
cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
115112

113+
- name: Build Flatpak (stable)
114+
if: ${{ inputs.stableBuild == true || inputs.stableBuild == 'true' }}
115+
uses: flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
116+
with:
117+
bundle: ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
118+
upload-artifact: false
119+
manifest-path: .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
120+
arch: x86_64
121+
build-bundle: true
122+
verbose: true
123+
mirror-screenshots-url: https://dl.flathub.org/media
124+
branch: stable
125+
cache: true
126+
restore-cache: true
127+
cache-key: ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
128+
116129
#- name: Validate build
117130
# run: |
118131
# flatpak-builder-lint repo repo
119132

120-
- name: Push to Flathub beta
121-
if: inputs.publish == true && inputs.branch == 'beta'
133+
- name: Push to Flathub (beta)
134+
if: ${{ inputs.publish == true && (inputs.stableBuild == false || inputs.stableBuild == 'false') }}
122135
uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
123136
with:
124137
flat-manager-url: https://hub.flathub.org/
125138
repository: beta
126139
token: ${{ secrets.FLATHUB_BETA_TOKEN }}
127140
build-log-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
128141

129-
- name: Push to Flathub stable
130-
if: inputs.publish == true && inputs.branch == 'stable'
142+
- name: Push to Flathub (stable)
143+
if: ${{ inputs.publish == true && (inputs.stableBuild == true || inputs.stableBuild == 'true') }}
131144
uses: flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
132145
with:
133146
flat-manager-url: https://hub.flathub.org/

.github/workflows/release_cut_new.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ jobs:
114114
artifactPrefixName: "PCSX2-linux-Qt-x64-flatpak"
115115
compiler: clang
116116
cmakeflags: ""
117-
branch: "stable"
118117
publish: false
119118
fetchTags: true
120119
stableBuild: ${{ github.event_name == 'workflow_dispatch' && inputs.is_prelease == 'false' }}

0 commit comments

Comments
 (0)