2023-07-09 03:24:42 +00:00
|
|
|
name: Repo
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Rebuild once a day
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
flatter:
|
|
|
|
name: Flatter
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2023-07-09 03:32:41 +00:00
|
|
|
image: ghcr.io/andyholmes/flatter/gnome:master
|
2023-07-09 03:24:42 +00:00
|
|
|
options: --privileged
|
2023-07-10 15:27:23 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2023-07-09 03:24:42 +00:00
|
|
|
|
|
|
|
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:
|
|
|
|
# Checkout a repository with Flatpak manifests
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v3
|
2023-07-09 03:50:38 +00:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-07-09 03:24:42 +00:00
|
|
|
|
|
|
|
# See "Multiple Architectures" below
|
|
|
|
- name: Setup QEMU
|
|
|
|
if: ${{ matrix.arch == 'aarch64' }}
|
|
|
|
id: qemu
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
with:
|
|
|
|
platforms: arm64
|
|
|
|
|
|
|
|
# See "GPG Signing" below
|
|
|
|
- name: Setup GPG
|
|
|
|
id: gpg
|
|
|
|
uses: crazy-max/ghaction-import-gpg@v5
|
|
|
|
with:
|
|
|
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
|
|
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
uses: andyholmes/flatter@main
|
|
|
|
with:
|
|
|
|
files: |
|
2023-07-10 15:27:23 +00:00
|
|
|
build-aux/flatpak/com.github.GradienceTeam.Gradience.json
|
2023-07-09 03:24:42 +00:00
|
|
|
arch: ${{ matrix.arch }}
|
|
|
|
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
|
|
|
|
upload-bundles: true
|
2023-07-10 15:27:23 +00:00
|
|
|
- name: Deploy
|
|
|
|
uses: JamesIves/github-pages-deploy-action@releases/v4
|
|
|
|
with:
|
|
|
|
folder: ${{ steps.build.outputs.repository }}
|
|
|
|
target-folder: repo
|
|
|
|
single-commit: true
|
2023-07-09 03:24:42 +00:00
|
|
|
|