Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #2

Merged
merged 3 commits into from
Sep 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
#
# Copyright (C) 2024 nosignals
#
name: Building Neko DEV

on:
workflow_dispatch:
inputs:
version:
description: 'Neko version'
required: true
default: '1.2.2-beta'
type: string
changelog:
description: 'Changelog'
required: true
default: ''
type: string

jobs:
build_ipk:
permissions:
contents: write
name: Build Neko
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release:
- 23.05.4
arch:
- x86_64

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: dev

- name: Preparing Theme
run: |
echo ""
git clone -b neko-theme https://github.com/nosignals/neko
cp ./neko/theme/* ./luci-app-neko/htdocs/nekoclash/assets/theme/
cp ./neko/img/* ./luci-app-neko/htdocs/nekoclash/assets/img/

- name: Preparing Neko
run: |
echo ""
mkdir feeds artifacts
cp -rf ./luci-app-neko ./feeds
cp -rf ./mihomo ./feeds

- name: Building luci-app-neko
uses: nosignals/gh-action-sdk@main
env:
ARCH: ${{ matrix.arch }}-${{ matrix.release }}
ARTIFACTS_DIR: ${{ github.workspace }}/artifacts
FEED_DIR: ${{ github.workspace }}/feeds
PACKAGES: mihomo luci-app-neko
NO_SHFMT_CHECK: 1

- name: Delivering Package
uses: actions/upload-artifact@v3
with:
name: neko-${{ matrix.release }}_${{ matrix.arch }}
path: ${{ github.workspace }}/artifacts/bin/packages/${{ matrix.arch }}/action/luci-app*

push_packages:
needs: build_ipk
name: Push Packages to Release
permissions:
contents: write # To push a branch
runs-on: ubuntu-latest
steps:
- name: Download temporary artifact
uses: actions/download-artifact@v3

- name: Moving artifact to releases
shell: bash
run: |
mkdir ./release
cp -rf ./neko-23.05.4_x86_64/luci-app* ./release/luci-app-neko_${{ inputs.version }}_dev_all.ipk

- name: Upload release asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./release/*
overwrite: true
prerelease: true
tag: neko-dev
file_glob: true
body: |
# LUCI APP NEKO DEV
Simple Clash TUN based Proxy
### Information
- Changelog :
- dev build, not recomended to install
- ${{ inputs.changelog }}
- Default Config :
- config.yaml : minimal Configs for Neko (only 1 rules) - Secret : ` sign `
- nosignals.yaml : 2 rules can added (Block Host, Game) - Secret : ` telekulo `
### Dependency Requirement
- ` bash, kmod-tun, php, php-cgi ` (install PHP Manually before install Neko)
- Openwrt 23: ` php8 php8-cgi nftables mihomo`
Loading