-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (40 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
name: build
run-name: Build Flatpak
on:
pull_request:
workflow_dispatch:
jobs:
Build-Flatpak:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: true
- name: Setup GPG
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Install dependencies
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get update -y
git config --global protocol.file.allow always
sudo apt-get install --no-install-recommends -y \
icoutils \
flatpak \
flatpak-builder \
elfutils \
rsync
- name: Build the flatpak
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_KEY_GREP: ${{ secrets.GPG_KEY_GREP }}
run: |
ls ${{ github.workspace }}
chmod +x build.sh
./build.sh