Make sure the build is not marked as modified
This commit is contained in:
parent
0caad54608
commit
4d23134c63
1 changed files with 5 additions and 4 deletions
9
.github/workflows/ci-main.yml
vendored
9
.github/workflows/ci-main.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue