23
23
cmakeflags :
24
24
required : true
25
25
type : string
26
- branch :
27
- required : false
28
- type : string
29
- default : " stable"
30
26
publish :
31
27
required : false
32
28
type : boolean
98
94
run : |
99
95
flatpak-builder-lint manifest .github/workflows/scripts/linux/flatpak/net.pcsx2.PCSX2.json
100
96
101
- - name : Build Flatpak
97
+ - name : Build Flatpak (beta)
98
+ if : ${{ inputs.stableBuild == false || inputs.stableBuild == 'false' }}
102
99
uses : flathub-infra/flatpak-github-actions/flatpak-builder@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
103
100
with :
104
101
bundle : ${{ steps.artifact-metadata.outputs.artifact-name }}.flatpak
@@ -108,26 +105,42 @@ jobs:
108
105
build-bundle : true
109
106
verbose : true
110
107
mirror-screenshots-url : https://dl.flathub.org/media
111
- branch : ${{ inputs.branch }}
108
+ branch : beta
112
109
cache : true
113
110
restore-cache : true
114
111
cache-key : ${{ inputs.os }} ${{ inputs.platform }} ${{ inputs.compiler }} flatpak ${{ hashFiles('.github/workflows/scripts/linux/flatpak/**/*.json') }}
115
112
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
+
116
129
# - name: Validate build
117
130
# run: |
118
131
# flatpak-builder-lint repo repo
119
132
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') }}
122
135
uses : flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
123
136
with :
124
137
flat-manager-url : https://hub.flathub.org/
125
138
repository : beta
126
139
token : ${{ secrets.FLATHUB_BETA_TOKEN }}
127
140
build-log-url : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
128
141
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') }}
131
144
uses : flathub-infra/flatpak-github-actions/flat-manager@23796715b3dfa4c86ddf50cf29c3cc8b3c82dca8
132
145
with :
133
146
flat-manager-url : https://hub.flathub.org/
0 commit comments