Made flatpak ci job upload bundle too
Convert git checkout to dir in flatpak manifest since otherwise some git operation fails. Set branch name to "ci" to avoid clashes with other installs.
This commit is contained in:
parent
e000d1de3f
commit
db61119ea1
1 changed files with 10 additions and 2 deletions
12
.github/workflows/ci-main.yml
vendored
12
.github/workflows/ci-main.yml
vendored
|
@ -172,8 +172,16 @@ jobs:
|
|||
|
||||
- name: Flatpak
|
||||
run: |
|
||||
jq '.modules |= map(select(.name == "wesnoth").sources[0]+={"path":"."}) | ."build-options".env.FLATPAK_BUILDER_N_JOBS="2"' packaging/flatpak/org.wesnoth.Wesnoth.json > org.wesnoth.Wesnoth.json
|
||||
flatpak-builder --force-clean --disable-rofiles-fuse wesnoth-app org.wesnoth.Wesnoth.json
|
||||
jq '.modules |= map(select(.name == "wesnoth").sources[0]={"type":"dir","path":"."}) | ."build-options".env.FLATPAK_BUILDER_N_JOBS="2"' packaging/flatpak/org.wesnoth.Wesnoth.json > org.wesnoth.Wesnoth.json
|
||||
flatpak-builder --force-clean --default-branch=ci --disable-rofiles-fuse wesnoth-app org.wesnoth.Wesnoth.json
|
||||
flatpak build-export export wesnoth-app ci
|
||||
flatpak build-bundle export wesnoth.flatpak org.wesnoth.Wesnoth ci --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
|
||||
- name: Upload flatpak bundle
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Flatpak-Bundle
|
||||
path: |
|
||||
wesnoth.flatpak
|
||||
|
||||
translations:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Add table
Reference in a new issue