This commit is contained in:
Jeffry Samuel 2024-08-04 18:07:27 -06:00 committed by GitHub
parent 0d017c6d14
commit b8d1d43822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

35
.github/workflows/flatpak-build.yml vendored Normal file
View File

@ -0,0 +1,35 @@
# .github/workflows/flatpak-build.yml
name: Flatpak Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get the latest commit ID
id: get_commit_id
run: echo "COMMIT_ID=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Update Flatpak Manifest
run: |
sed -i "s/\"commit\" : \".*\"/\"commit\" : \"${COMMIT_ID}\"/" path/to/your/manifest.json
- name: Build Flatpak
run: |
flatpak-builder --force-clean --repo=repo builddir path/to/your/manifest.json
- name: Upload Flatpak Artifact
uses: actions/upload-artifact@v2
with:
name: flatpak-package
path: path/to/your/builddir