forked from RepoMirrors/bemenu
32 lines
1.1 KiB
YAML
32 lines
1.1 KiB
YAML
name: flatpak
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
flatpak:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: bilelmoussaoui/flatpak-github-actions:freedesktop-20.08
|
|
options: --privileged
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Fixup the manifests (PR only)
|
|
if: github.event_name == 'pull_request'
|
|
run: |
|
|
sed -i 's|branch: master|branch: ${{ github.ref }}|' pw.cloudef.bemenu.yml
|
|
sed -i 's|branch: master|branch: ${{ github.ref }}|' pw.cloudef.bemenu-run.yml
|
|
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
|
|
with:
|
|
bundle: pw.cloudef.bemenu.flatpak
|
|
manifest-path: pw.cloudef.bemenu.yml
|
|
cache-key: flatpak-builder-bemenu-${{ github.sha }}
|
|
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
|
|
with:
|
|
bundle: pw.cloudef.bemenu-run.flatpak
|
|
manifest-path: pw.cloudef.bemenu-run.yml
|
|
cache-key: flatpak-builder-bemenu-run-${{ github.sha }}
|