-
Notifications
You must be signed in to change notification settings - Fork 216
105 lines (93 loc) · 2.83 KB
/
release.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Release Packages
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
release:
name: ${{ matrix.arch }}-${{ matrix.branch }} release
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:
arch:
- arm_cortex-a5_vfpv4
- arm_cortex-a7_neon-vfpv4
- arm_cortex-a8_vfpv3
- arm_cortex-a9
- arm_cortex-a9_vfpv3-d16
- arm_cortex-a9_neon
- arm_cortex-a15_neon-vfpv4
- aarch64_cortex-a53
- aarch64_cortex-a72
- aarch64_cortex-a76
- aarch64_generic
- mips_24kc
- mips_4kec
- mips_mips32
- mipsel_24kc
- mipsel_24kc_24kf
- mipsel_74kc
- mipsel_mips32
- mips64_octeonplus
- i386_pentium4
- x86_64
branch:
- openwrt-23.05
- openwrt-24.10
- SNAPSHOT
exclude:
- arch: aarch64_cortex-a76
branch: openwrt-23.05
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: openwrt/gh-action-sdk@main
env:
ARCH: ${{ matrix.arch }}-${{ matrix.branch }}
FEEDNAME: nikki
PACKAGES: luci-app-nikki
INDEX: 1
KEY_BUILD: ${{ secrets.KEY_BUILD }}
NO_REFRESH_CHECK: true
- name: Compress
run: |
tar -c -z -f nikki_${{ matrix.arch }}-${{ matrix.branch }}.tar.gz -C bin/packages/${{ matrix.arch }}/nikki .
mkdir -p public/${{ matrix.branch }}/${{ matrix.arch }}
mv bin/packages/${{ matrix.arch }}/nikki public/${{ matrix.branch }}/${{ matrix.arch }}
tar -c -z -f feed_nikki_${{ matrix.arch }}-${{ matrix.branch }}.tar.gz public/${{ matrix.branch }}/${{ matrix.arch }}
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
nikki_${{ matrix.arch }}-${{ matrix.branch }}.tar.gz
- name: Upload
uses: actions/upload-artifact@v4
with:
name: feed_nikki_${{ matrix.arch }}-${{ matrix.branch }}
path: feed_nikki_${{ matrix.arch }}-${{ matrix.branch }}.tar.gz
feed:
needs: release
name: feed
runs-on: ubuntu-latest
steps:
- name: Download
uses: actions/download-artifact@v4
with:
pattern: feed_nikki_*
merge-multiple: true
- name: Uncompress
run: |
for file in feed_nikki_*.tar.gz; do tar -x -z -f "$file"; done
- name: Key
run: |
echo "${{ secrets.KEY_BUILD_PUB }}" > public/key-build.pub
- name: Feed
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true
commit_message: Update Feed