Skip to content

ci: drop GPG passphrase #91

ci: drop GPG passphrase

ci: drop GPG passphrase #91

Workflow file for this run

name: Continuous Deployment
on:
push:
branches: [main]
pull_request:
branches: [main]
paths: [dist/**]
workflow_dispatch:
jobs:
flatter:
name: Flatter
runs-on: ubuntu-latest
container:
image: ghcr.io/andyholmes/flatter/gnome:46
options: --privileged
strategy:
max-parallel: 1
matrix:
arch: [x86_64, aarch64]
fail-fast: false
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 }}
- name: Generate CNAME
run: |
echo "flatter.andyholmes.ca" > CNAME
- name: Build
uses: andyholmes/flatter@main
with:
files: |
tests/manifests/ca.andyholmes.Flatter.yml
tests/manifests/name.ptomato.Bloatpad.json
arch: ${{ matrix.arch }}
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
upload-bundles: true
upload-pages-artifact: ${{ matrix.arch == 'aarch64' }}
upload-pages-includes: |
tests/index.html
tests/default.css
CNAME
deploy:
name: Deploy
if: ${{ github.event_name != 'pull_request' }}
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