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:
Sergey Popov 2023-04-24 11:32:18 +03:00 committed by GitHub
parent e000d1de3f
commit db61119ea1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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