sweeCrypt-GTK/.forgejo/workflows/build.yml
swee ac5f5aad23
All checks were successful
Auto build / Build Debian Package (push) Successful in 1m0s
Auto build / Build Flatpak Package (push) Successful in 1m4s
Update .forgejo/workflows/build.yml
2024-12-27 21:01:50 -08:00

44 lines
No EOL
1.3 KiB
YAML

name: Auto build
on:
push:
workflow_dispatch:
jobs:
apt:
name: Build Debian Package
runs-on: debian-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Generate DEB
run: |
python generate-deb.py
- uses: actions/upload-artifact@v3
with:
path: sweecrypt-gtk.deb
flatpak:
name: Build Flatpak Package
runs-on: debian-testing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install org.gnome.Sdk
run: flatpak -y --user install flathub org.gnome.Sdk//47
- name: Install org.gnome.Platform
run: flatpak -y --user install flathub org.gnome.Platform//47
- name: Generate file for use in flatpak
run: python generate-flatpak.py
- name: Build flatpak package
run: flatpak-builder --disable-rofiles-fuse flatpak codes.swee.SweeCryptGTK.json
- name: Package the directory
run: tar -cvf flatpak.tar flatpak
- uses: actions/upload-artifact@v3
with:
path: flatpak.tar