2024-01-12 23:13:47 +00:00
|
|
|
name: Repo
|
2023-07-09 03:24:42 +00:00
|
|
|
|
|
|
|
on:
|
2024-01-12 23:40:35 +00:00
|
|
|
# Rebuild once a day
|
|
|
|
#schedule:
|
|
|
|
# - cron: "0 0 * * *"
|
2023-07-10 19:47:24 +00:00
|
|
|
push:
|
2024-01-12 23:40:35 +00:00
|
|
|
workflow_dispatch:
|
2023-07-09 03:24:42 +00:00
|
|
|
|
|
|
|
jobs:
|
2024-01-12 23:40:35 +00:00
|
|
|
flatter:
|
|
|
|
name: Flatter
|
2023-07-09 03:24:42 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch: [x86_64, aarch64]
|
|
|
|
fail-fast: false
|
2024-01-12 23:40:35 +00:00
|
|
|
# Only one job at a time can use the shared repository cache
|
|
|
|
max-parallel: 1
|
2023-07-09 03:24:42 +00:00
|
|
|
|
|
|
|
steps:
|
2024-01-12 23:40:35 +00:00
|
|
|
# Checkout a repository with Flatpak manifests
|
2023-07-09 03:24:42 +00:00
|
|
|
- name: Checkout
|
2024-01-15 07:39:13 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-07-09 03:50:38 +00:00
|
|
|
with:
|
2024-01-12 23:40:35 +00:00
|
|
|
submodules: recursive
|
2023-07-09 03:24:42 +00:00
|
|
|
|
2024-01-12 23:40:35 +00:00
|
|
|
# See "Multiple Architectures" below
|
2023-07-09 03:24:42 +00:00
|
|
|
- name: Setup QEMU
|
|
|
|
if: ${{ matrix.arch == 'aarch64' }}
|
|
|
|
id: qemu
|
2024-01-15 07:39:27 +00:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2023-07-09 03:24:42 +00:00
|
|
|
with:
|
|
|
|
platforms: arm64
|
|
|
|
|
2024-01-12 23:40:35 +00:00
|
|
|
# See "GPG Signing" below
|
2023-07-09 03:24:42 +00:00
|
|
|
- name: Setup GPG
|
|
|
|
id: gpg
|
2024-01-15 07:39:09 +00:00
|
|
|
uses: crazy-max/ghaction-import-gpg@v6
|
2023-07-09 03:24:42 +00:00
|
|
|
with:
|
|
|
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
|
|
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
uses: andyholmes/flatter@main
|
|
|
|
with:
|
|
|
|
files: |
|
2023-07-10 15:31:28 +00:00
|
|
|
build-aux/flatpak/com.github.GradienceTeam.Gradience.Devel.json
|
2023-07-09 03:24:42 +00:00
|
|
|
arch: ${{ matrix.arch }}
|
|
|
|
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
|
|
|
|
upload-bundles: true
|
2024-01-12 23:40:35 +00:00
|
|
|
upload-pages-artifact: true
|
|
|
|
upload-pages-includes: |
|
|
|
|
repo/default.css
|
|
|
|
repo/index.html
|
2023-07-10 19:38:15 +00:00
|
|
|
|
2024-01-12 23:40:35 +00:00
|
|
|
# See "Github Pages" below
|
|
|
|
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 }}
|
2024-01-12 23:20:39 +00:00
|
|
|
|
2024-01-12 23:40:35 +00:00
|
|
|
steps:
|
|
|
|
- name: GitHub Pages
|
|
|
|
id: deployment
|
2024-01-15 07:39:23 +00:00
|
|
|
uses: actions/deploy-pages@v4
|