-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (38 loc) · 1.17 KB
/
Copy pathflatpak.yml
File metadata and controls
44 lines (38 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Flatpak
on:
push:
tags: ['v*']
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: write # needed to upload the bundle to a release on tags
jobs:
build:
name: Build Flatpak bundle
runs-on: ubuntu-latest
container:
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-50
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: EasyAmp.flatpak
manifest-path: packaging/com.vonholtencodes.EasyAmp.yaml
cache-key: flatpak-builder-${{ github.sha }}
# Always keep the bundle as a build artifact (handy for PRs / manual runs)
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: EasyAmp-flatpak
path: EasyAmp.flatpak
# On a version tag, attach the bundle to the GitHub Release
- name: Attach to release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
with:
files: EasyAmp.flatpak