-
-
Notifications
You must be signed in to change notification settings - Fork 91
59 lines (52 loc) · 1.49 KB
/
flatpak.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: flatpak
on:
workflow_dispatch:
push:
branches: [preview]
pull_request:
branches: [preview]
jobs:
build-flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
options: --privileged
steps:
- uses: actions/checkout@v4
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
with:
bundle: amiberry.flatpak
manifest-path: ./flatpak/com.blitterstudio.amiberry.yml
arch: x86_64
build-bundle: true
verbose: true
branch: preview
cache: true
restore-cache: true
cache-key: flatpak-builder-${{ github.sha }}
- name: Upload Flatpak
uses: actions/upload-artifact@v3
with:
name: "linux-flatpak"
path: "amiberry.flatpak"
create-release:
needs: [build-flatpak]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/preview'
steps:
- name: Download Flatpak artifact
uses: actions/download-artifact@v1
with:
name: "linux-flatpak"
- name: Create Preview release
if: github.ref == 'refs/heads/preview'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest-preview"
prerelease: true
title: "Latest Preview Build"
files: |
linux-flatpak/amiberry.flatpak