-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b64ff75
commit ab00953
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Linux_Flatpak | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_ubuntu: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- name: Setup Flatpak | ||
run: | | ||
sudo apt update | ||
sudo apt install -y flatpak-builder flatpak | ||
- name: Add Flatpak repository | ||
run: | | ||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build Flatpak | ||
run: | | ||
flatpak-builder --repo=repo --sandbox --force-clean build-dir io.github.JakubMelka.Pdf4qt.json | ||
- name: Build Flatpak Package | ||
flatpak build-bundle repo ./pdf4qt/Flatpak/io.github.JakubMelka.Pdf4qt.flatpak io.github.JakubMelka.Pdf4qt | ||
|
||
- name: Upload Flatpak Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: io.github.JakubMelka.Pdf4qt.flatpak | ||
path: ./io.github.JakubMelka.Pdf4qt.flatpak | ||
retention-days: 30 | ||
compression-level: 0 |