54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
name: i18n-luci-18.06
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
build:
|
|
name: Build openwrt-18.06 luci-i18n package
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch:
|
|
- x86_64
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Get v2ray-geodata
|
|
run: |
|
|
git clone https://github.com/sbwml/v2ray-geodata
|
|
|
|
- name: Building packages
|
|
uses: immortalwrt/gh-action-sdk@master
|
|
env:
|
|
ARCH: ${{ matrix.arch }}-openwrt-18.06-k5.4
|
|
FEEDNAME: packages_ci
|
|
PACKAGES: luci-app-mosdns
|
|
NO_REFRESH_CHECK: true
|
|
|
|
- name: Move created packages to project dir
|
|
run: |
|
|
cp bin/packages/${{ matrix.arch }}/packages_ci/*i18n*zh-cn*.ipk . || true
|
|
for i in `ls *.ipk`; do mv -f $i `echo "openwrt-18.06_"$i`; done
|
|
|
|
- name: Store packages
|
|
uses: actions/upload-artifact@v3
|
|
if: github.event_name != 'release'
|
|
with:
|
|
name: ${{ matrix.arch}}-${{ github.sha}}-packages
|
|
path: "*.ipk"
|
|
|
|
- name: Upload packages
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
token: ${{ secrets.workflow_token }}
|
|
allowUpdates: true
|
|
replacesArtifacts: true
|
|
artifacts: "*.ipk"
|