Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
li-guohao authored May 25, 2024
0 parents commit 963669f
Show file tree
Hide file tree
Showing 33 changed files with 3,063 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci_build_jar.yml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This is a basic workflow to help you get started with Actions

name: Build FastJar

# Controls when the workflow will run
on:
release:
types: [published]

jobs:

release:
if: github.repository == 'ikaros-dev/plugin-bgmtv'
name: Build with java 17 and upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Git submodule init
uses: snickerbockers/submodules-init@v4
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Clean with gradle
run: |
./gradlew clean
- name: Build console with npm
run: |
./gradlew buildFrontend -x test
- name: Build server with gradle
run: |
./gradlew build -x test
- name: Get Project Version
id: get_version
run: echo "::set-output name=version::$(cat gradle.properties | grep ^version= | cut -d'=' -f2)"
- name: Upload lib jar to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.LI_GUOHAO_TOKEN }}
file: /home/runner/work/plugin-starter/plugin-starter/build/libs/plugin-bgmtv-${{steps.get_version.outputs.version}}.jar
asset_name: plugin-bgmtv-${{steps.get_version.outputs.version}}.jar




69 changes: 69 additions & 0 deletions .github/workflows/ci_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This is a basic workflow to help you get started with Actions

name: Server CI

# Controls when the workflow will run
on:
push:
branches:
- master
paths:
- "**"
- '!console/**'
- "!**.md"
pull_request:
branches:
- master
- release-*
paths:
- "**"
- '!console/**'
- "!**.md"

jobs:
checkConsole:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build console with npm
run: |
./gradlew buildFrontend -x test
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run tests
run: ./gradlew test
- name: Upload build dir if current step run failed.
uses: actions/[email protected]
if: ${{ failure() }}
with:
# Artifact name
name: testBuild
# A file, directory or wildcard pattern that describes what to upload
path: /home/runner/work/plugin-starter/plugin-starter/build
# The desired behavior if no files are found using the provided path.
if-no-files-found: warn
# Duration after which artifact will expire in days. 0 means using default retention.Minimum 1 day. Maximum 90 days unless changed from the repository settings page.
retention-days: 7

28 changes: 28 additions & 0 deletions .github/workflows/ci_release_by_tag.yml.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Create Release

permissions:
contents: write

on:
push:
tags:
- v[0-9]+.*

jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (Optional)
changelog: CHANGELOG.MD
# (Optional) Create a draft release.
# [default value: false]
draft: false
# (Optional) Format of title.
# [default value: $tag]
# [possible values: variables $tag, $version, and any string]
title: v$version
# (Required) GitHub token for creating GitHub Releases.
token: ${{ secrets.LI_GUOHAO_TOKEN }}
50 changes: 50 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Local Dev Files
logs/
upload/
media/
downloads/
database/
tripartite/
original/
plugins/

### Console Build ###
src/main/resources/console/
13 changes: 13 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CHANGELOG

更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。

# 0.11.0

## 新特性

- 升级本体API到v0.11.0并适配




Loading

0 comments on commit 963669f

Please sign in to comment.