mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-29 12:35:13 +08:00
update 2026-09-24 16:56:26
This commit is contained in:
1 parent
b31a5c3878
commit
e4cee331e9
6885 files changed
+3240523
No files matched your search
+32
@@ -0,0 +1,32 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Run static checks
|
||||
run: scripts/check.sh
|
||||
|
||||
- name: Build LuCI packages
|
||||
run: scripts/build-luci-package.sh 0.1.0 dist
|
||||
|
||||
- name: Run integration checks
|
||||
run: scripts/integration-check.sh
|
||||
|
||||
- name: Upload package artifacts
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: luci-app-oxidns-packages
|
||||
path: dist/*
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: Version to package, for example v0.1.0
|
||||
required: true
|
||||
default: v0.1.0
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
|
||||
- uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
- name: Resolve version
|
||||
id: version
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
|
||||
echo "value=${{ inputs.version }}" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "value=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
- name: Run release checks and build packages
|
||||
run: scripts/release-check.sh "${{ steps.version.outputs.value }}" dist
|
||||
|
||||
- name: Publish release
|
||||
uses: softprops/action-gh-release@v3
|
||||
with:
|
||||
tag_name: ${{ steps.version.outputs.value }}
|
||||
files: |
|
||||
dist/*.ipk
|
||||
dist/*.apk
|
||||
dist/sha256sums.txt
|
||||
generate_release_notes: true
|
||||
Reference in new issue
Block a user