mirror of
https://github.com/arabianq/pipewire-soundpad.git
synced 2026-04-27 22:11:22 +00:00
67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
name: Flatter
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
flatter:
|
|
name: Flatter
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
container:
|
|
image: ghcr.io/andyholmes/flatter/freedesktop:25.08
|
|
options: --privileged
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- 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: Set Default Branch
|
|
id: set_branch
|
|
run: |
|
|
if [ "${{ github.event_name }}" == "release" ]; then
|
|
echo "branch=stable" >> $GITHUB_OUTPUT
|
|
else
|
|
echo "branch=nightly" >> $GITHUB_OUTPUT
|
|
fi
|
|
|
|
- name: Modify Manifest
|
|
run: |
|
|
echo "default-branch: ${{ steps.set_branch.outputs.branch }}" >> packages/flatpak/ru.arabianq.pwsp.yaml
|
|
|
|
- name: Build Flatpak
|
|
uses: andyholmes/flatter@main
|
|
with:
|
|
files: packages/flatpak/ru.arabianq.pwsp.yaml
|
|
gpg-sign: ${{ steps.gpg.outputs.fingerprint }}
|
|
upload-bundles: false
|
|
upload-pages-artifact: true
|
|
|
|
deploy:
|
|
name: Deploy to GitHub Pages
|
|
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
|