Make sure the build is not marked as modified

This commit is contained in:
Gunter Labes 2023-04-24 18:55:34 +02:00 committed by GitHub
parent 0caad54608
commit 4d23134c63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,16 +172,17 @@ jobs:
- name: Flatpak
run: |
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
# write to an ignored filename so the build is not marked as modified
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 > wesnoth-manifest.json
flatpak-builder --force-clean --default-branch=ci --disable-rofiles-fuse wesnoth-app wesnoth-manifest.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
path: wesnoth.flatpak
translations:
runs-on: ubuntu-latest