This repository has been archived by the owner on May 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
78 lines (71 loc) · 2.18 KB
/
build-ubuntu.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Ubuntu
run-name: ${{ github.actor }} running Build
on:
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug
push:
branches:
- "*"
schedule:
# Runs at midnight UTC every day (see https://crontab.guru)
- cron: '0 0 * * *'
jobs:
build-debs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Clone & Update submodules
run: |
git submodule update --init
git pull --recurse-submodules
git submodule update --remote --recursive
shell: bash
- name: Install Dependencies
run: ./subprojects/LenovoLegionLinux/deploy/dependencies/install_dependencies_ubuntu.sh
shell: bash
- name: Build deb darkdetect
run: ./subprojects/build_deb_darkdetect.sh
shell: bash
- name: Build pkgs LenovoLegionLinux
run: |
sudo apt-get install /tmp/darkdetect_deb/python3-darkdetect_0.8.0-1_all.deb
./subprojects/build_deb_LLL.sh
shell: bash
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Copy and Generate files - Ubuntu
run: |
cd ubuntu
gpg --armor --export "${{ secrets.GPG_ID }}" > ./KEY.gpg
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key "${{ secrets.GPG_ID }}" -abs -o - Release > Release.gpg
gpg --default-key "${{ secrets.GPG_ID }}" --clearsign -o - Release > InRelease
echo "deb [signed-by=/usr/share/keyrings/lll-ppa.gpg] https://mrduartept.github.io/LLL-pkg-repo/ubuntu ./" > lll-ppa.list
shell: bash
- name: Commit changes
run: |
git fetch
git add -A
git config user.name github-actions
git config user.email github-actions@github.com
git commit -m "Add new debs"
git pull --rebase
git push
shell: bash