-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (42 loc) · 1.16 KB
/
build.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
name: "Flatpak"
on:
workflow_dispatch:
release:
types: [ published ]
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: write
jobs:
build:
name: "Build"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: flatpak/flatpak-github-actions/flatpak-builder@master
with:
bundle: rare-${{ github.ref_name }}.flatpak
arch: x86_64
manifest-path: io.github.dummerle.rare.yaml
cache-key: flatpak-builder-${{ github.sha }}
release:
needs: build
if: github.event_name == 'release'
name: "Release"
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: rare-${{ github.ref_name }}-x86_64
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rare-${{ github.ref_name }}.flatpak
asset_name: rare-${{ github.ref_name }}.flatpak
tag: ${{ github.ref_name }}
overwrite: true