Skip to content
This repository has been archived by the owner on May 12, 2024. It is now read-only.

Commit

Permalink
CI: Upload to releases
Browse files Browse the repository at this point in the history
  • Loading branch information
QKIvan authored Feb 3, 2024
1 parent 8028864 commit 24475eb
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/build-nekko-kernel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ name: Build Nekko Kernel
on:
release:
types: [published]
repos:
- tiann/KernelSU
workflow_dispatch:
inputs:
release:
description: "Release"
required: true
default: false
type: boolean

env:
TZ: Asia/Shanghai

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -27,6 +22,7 @@ jobs:
# Runs a single command using the runners shell
- name: Setup build kernel environment & Sync kernel
run: |
sudo timedatectl set-timezone "$TZ"
cd /home/runner
echo 'Preparing packages'
sudo apt-get update -y
Expand All @@ -51,7 +47,7 @@ jobs:
- name: Build Kernel
run: |
cd /home/runner/android-kernel
./build_redbull-gki.sh
./build_redbull.sh
- name: Setting up AnyKenrel3
run: |
Expand All @@ -77,3 +73,24 @@ jobs:
with:
name: Image.lz4-dtb
path: "/home/runner/android-kernel/out/android-msm-pixel-4.19/dist/Image.lz4-dtb"

- name: Generate release tag
id: tag
if: success()
run: |
echo "release_tag=Nekko-$(date +"%Y.%m.%d-%H%M")" >> $GITHUB_OUTPUT
echo "status=success" >> $GITHUB_OUTPUT
- name: Upload kernel and AK3 to Releases
uses: softprops/action-gh-release@v1
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: |
/home/runner/android-kernel/out/android-msm-pixel-4.19/dist/Image.lz4-dtb
/home/runner/android-kernel/AnyKernel3/AnyKernel3.zip
/home/runner/android-kernel/out/android-msm-pixel-4.19/dist/boot.img
/home/runner/android-kernel/out/android-msm-pixel-4.19/dist/vendor_boot.img
/home/runner/android-kernel/out/android-msm-pixel-4.19/dist/dtbo.img

0 comments on commit 24475eb

Please sign in to comment.