-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (29 loc) · 955 Bytes
/
Copy pathrelease-kernel.yml
File metadata and controls
35 lines (29 loc) · 955 Bytes
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
name: Release Stable Kernel
on:
repository_dispatch:
workflow_dispatch:
env:
TZ: America/New_York
jobs:
build:
runs-on: ubuntu-22.04
if: ${{ github.event.repository.owner.id }} == ${{ github.event.sender.id }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create archives
id: packaging
run: |
cd pub/stable
for kernel_dir in ./*; do [ -d "${kernel_dir}" ] && tar -czvf "${kernel_dir}.tar.gz" "${kernel_dir}"; done
echo "status=success" >> ${GITHUB_OUTPUT}
- name: Upload Kernel to Release
uses: ncipollo/release-action@main
if: ${{ steps.packaging.outputs.status }} == 'success' && !cancelled()
with:
tag: kernel_stable
artifacts: pub/*/*.tar.gz
allowUpdates: true
token: ${{ secrets.GH_TOKEN }}
body: |
The kernel can be used to compile Armbian and OpenWrt.