-
-
Notifications
You must be signed in to change notification settings - Fork 435
43 lines (43 loc) · 1.28 KB
/
flatpak-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
on:
push:
branches: [main]
pull_request:
branches: [main, stable]
workflow_dispatch:
inputs:
version:
description: 'Build Flatpak Files'
required: false
name: Flatpak-CI
jobs:
flatpak:
name: 'Flatpak Build'
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:freedesktop-22.08
options: --privileged
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install modules.
run: npm i --legacy-peer-deps
- name: Build artifacts.
run: npm run dist:linux appimage --publish=never
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
- name: Prepare Flatpak
run: npm run flatpak:prepare
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
GH_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
- name: Build Flatpak
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: heroicgameslauncher.flatpak
manifest-path: flatpak-build/com.heroicgameslauncher.hgl.yml
cache-key: flatpak-builder-${{ github.sha }}