Skip to content

Commit ff68234

Browse files
committed
test flatpak build
1 parent dfbe23e commit ff68234

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,27 @@ jobs:
133133
PACKAGE_VERSION=$(poetry version --short)
134134
FLATPAK_VERSION=$(python -c "import xml.etree.ElementTree as ET; print(ET.parse('meta/com.nitrokey.nitrokey-app2.metainfo.xml').getroot().find('releases')[0].get('version'))")
135135
if [ $PACKAGE_VERSION == $FLATPAK_VERSION ]; then exit 0; else exit 1; fi
136+
flatpak-build:
137+
name: Flatpak bundle build
138+
runs-on: ubuntu-latest
139+
container:
140+
image: ghcr.io/flathub-infra/flatpak-github-actions:kde-6.8
141+
options: --privileged
142+
steps:
143+
- name: Checkout nkapp2 flathub repository
144+
uses: actions/checkout@v4
145+
with:
146+
repository: flathub/com.nitrokey.nitrokey-app2
147+
path: flatpak-build
148+
- name: Update flathub repository to use this commit
149+
run: |
150+
cd flatpak-build
151+
make venv
152+
bash ./update.sh ${{ github.sha }}
153+
make
154+
- name: Build the flatpak bundle
155+
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.5
156+
with:
157+
bundle: nkapp2.flatpak
158+
manifest-path: flatpak-build/com.nitrokey.nitrokey-app2.yml
159+
cache-key: flatpak-builder-${{ github.sha }}

0 commit comments

Comments
 (0)