From 0ce8f13639a784cc72c75b1457c12d2ccbc55f24 Mon Sep 17 00:00:00 2001 From: Sophie Krause Date: Thu, 6 Feb 2025 00:36:01 +0100 Subject: [PATCH] test ci --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2424cca..3daaf61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,3 +6,14 @@ build:docs: artifacts: paths: - ./Flashcards.pdf + +build:flatpak: + image: quay.io/gnome_infrastructure/gnome-runtime-images:gnome-47 + variables: + APP_ID: "li.sopht.Flashcards" + BUNDLE: "${APP_ID}.flatpak" + MANIFEST_PATH: "${APP_ID}.json" + RUNTIME_REPO: "https://flathub.org/repo/flathub.flatpakrepo" + script: + - flatpak-builder ${CI_FB_ARGS} --keep-build-dirs --user --disable-rofiles-fuse --build-only flatpak_app --repo=repo ${MANIFEST_PATH} + - flatpak build-bundle --runtime-repo=${RUNTIME_REPO} repo ${BUNDLE} ${APP_ID}