Skip to content

Flatter

Flatter #50

Workflow file for this run

name: Flatter
on:
# Rebuild once a day
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
flatter:
name: Flatter
runs-on: ubuntu-latest
container:
image: ghcr.io/andyholmes/flatter/freedesktop:23.08
options: --privileged
strategy:
matrix:
arch: [x86_64, aarch64]
fail-fast: false
# Only one job at a time can use the shared repository cache
max-parallel: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup QEMU
if: ${{ matrix.arch == 'aarch64' }}
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Setup GPG
id: gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Generate CNAME
run: |
echo "flatpak.lite-xl.com" > CNAME
- name: Build
uses: andyholmes/flatter@main
with:
files: |
build-aux/flatpak/com.lite_xl.LiteXL.json
build-aux/flatpak/com.lite_xl.LiteXL_nightly.json
build-aux/flatpak/com.lite_xl.LiteXL_libatures.json
arch: ${{ matrix.arch }}
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
# upload-bundles: true
upload-pages-artifact: ${{ matrix.arch == 'aarch64' }}
upload-pages-includes: |
CNAME
com.lite_xl.LiteXL.flatpakref
com.lite_xl.LiteXL_nightly.flatpakref
com.lite_xl.LiteXL_libatures.flatpakref
deploy:
name: Deploy
runs-on: ubuntu-latest
needs: flatter
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: GitHub Pages
id: deployment
uses: actions/deploy-pages@v4