Add release build

This commit is contained in:
ferrreo 2023-02-22 16:55:06 +00:00
parent 498fafb598
commit 68788f2c39
4 changed files with 37 additions and 3 deletions

View File

@ -14,9 +14,24 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Install needed packages - name: Install needed packages
run: apt update && apt install bc bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar -y run: apt update && apt install bc bison build-essential ccache cpio fakeroot flex git kmod libelf-dev libncurses5-dev libssl-dev lz4 qtbase5-dev rsync schedtool wget zstd tar reprepro dpkg-sig -y
- name: Build Kernel - name: Build Kernel
run: ./main.sh run: ./main.sh

View File

@ -0,0 +1,8 @@
Origin: ppa.pika-os.com
Label: apt repository
Codename: kinetic
Architectures: amd64
Components: main
Description: pika-os kernel repo
SignWith: 752E173A3F8B04F5
Pull: kinetic

View File

@ -3,6 +3,5 @@
echo "Pika Kernel - Copying Output" echo "Pika Kernel - Copying Output"
cd .. cd ..
mkdir ./output
rm ./linux-libc*.deb rm ./linux-libc*.deb
cp ./*.deb ./output/ cp ./*.deb ./output/

View File

@ -1,3 +1,15 @@
#!/bin/bash #!/bin/bash
echo "Pika Kernel - Releasing Kernel" echo "Pika Kernel - Releasing Kernel"
# Sign the packages
dpkg-sig --sign builder ./output/linux-image*.deb
dpkg-sig --sign builder ./output/linux-headers*.deb
# Update the repo
reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/linux-image*.deb
reprepro -V --basedir ./output/repo/ includedeb kinetic ./output/linux-headers*.deb
gpg --armor --export harderthanfire@gmail.com | tee ./output/repo/key.gpg
rsync -azP --delete ./output/repo/ pikappa@pika-os.com:/srv/www/pikappa/