Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
feat: 上传功能
Browse files Browse the repository at this point in the history
**!!删除功能未完成!!**
  • Loading branch information
AirboZH committed Jan 10, 2023
1 parent 43d6a84 commit 9917d7d
Show file tree
Hide file tree
Showing 34 changed files with 351 additions and 3,935 deletions.
32 changes: 4 additions & 28 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,41 +20,17 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/console/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install Frontend Dependencies
run: |
./gradlew pnpmInstall
- name: Build with Gradle
run: |
# Set the version with tag name when releasing
version=${{ github.event.release.tag_name }}
version=${version#v}
sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties
./gradlew clean build -x test
- name: Archive plugin-starter jar
- name: Archive plugin-uposs jar
uses: actions/upload-artifact@v2
with:
name: plugin-starter
name: plugin-uposs
path: |
build/libs/*.jar
retention-days: 1
Expand All @@ -64,10 +40,10 @@ jobs:
needs: build
if: github.event_name == 'release'
steps:
- name: Download plugin-starter jar
- name: Download plugin-uposs jar
uses: actions/download-artifact@v2
with:
name: plugin-starter
name: plugin-uposs
path: build/libs
- name: Get Name of Artifact
id: get_artifact
Expand Down
37 changes: 9 additions & 28 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
plugins {
id "com.github.node-gradle.node" version "3.3.0"
id "io.github.guqing.plugin-development" version "0.0.6-SNAPSHOT"
id 'java'
}

group 'run.halo.starter'
group 'cn.airbozh.uposs'
sourceCompatibility = JavaVersion.VERSION_17

repositories {
Expand All @@ -16,9 +15,6 @@ repositories {
jar {
enabled = true
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest.attributes(
'Plugin-Version': "${project.version}",
)
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
Expand All @@ -31,33 +27,18 @@ dependencies {

compileOnly files("lib/halo-2.0.0-SNAPSHOT-plain.jar")

compileOnly 'org.projectlombok:lombok:1.18.22'
implementation "com.upyun:java-sdk:4.2.3"

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok:1.18.22'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation platform("run.halo.dependencies:halo-dependencies:1.0.0")
testImplementation files("lib/halo-2.0.0-SNAPSHOT-plain.jar")
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
}

test {
useJUnitPlatform()
}

node {
nodeProjectDir = file("${project.projectDir}/console")
}

task buildFrontend(type: NpxTask) {
command = 'pnpm'
args = ['build']
}

task pnpmInstall(type: NpxTask) {
command = "pnpm"
args = ["install"]
}

build {
// build frontend before build
tasks.getByName('compileJava').dependsOn('buildFrontend')
tasks.getByName("buildFrontend").dependsOn("pnpmInstall")
}
57 changes: 0 additions & 57 deletions compose/README.md

This file was deleted.

40 changes: 0 additions & 40 deletions compose/application.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions compose/docker-compose.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions console/.editorconfig

This file was deleted.

15 changes: 0 additions & 15 deletions console/.eslintrc.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions console/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions console/env.d.ts

This file was deleted.

38 changes: 0 additions & 38 deletions console/package.json

This file was deleted.

Loading

0 comments on commit 9917d7d

Please sign in to comment.