forked from flathub/io.github.dummerle.rare
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 967 Bytes
/
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
name: "Build"
on:
workflow_dispatch:
release:
types: [ published ]
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: write
jobs:
flatpak:
name: "Flatpak"
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@v6
with:
bundle: rare-${{ github.ref_name }}.flatpak
manifest-path: io.github.dummerle.rare.yaml
cache-key: flatpak-builder-${{ github.sha }}
- uses: svenstaro/upload-release-action@v2
if: "github.event.release.release"
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