Skip to content

Commit

Permalink
chore: update project infrastructure (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored Jul 31, 2024
1 parent 126f895 commit 47dc8a2
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 3,985 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CD

on:
release:
types:
- published

jobs:
cd:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-cd.yaml@v1
secrets:
halo-username: ${{ secrets.HALO_USERNAME }}
halo-password: ${{ secrets.HALO_PASSWORD }}
permissions:
contents: write
with:
app-id: app-wEGMV
skip-node-setup: true
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
ci:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v1
with:
ui-path: "ui"
skip-node-setup: true
2 changes: 2 additions & 0 deletions OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ reviewers:
- ruibaby
- guqing
- JohnNiang
- Roozenlz

approvers:
- ruibaby
- guqing
- JohnNiang
- Roozenlz
21 changes: 0 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id 'java'
id "com.github.node-gradle.node" version "7.0.2"
id "io.freefair.lombok" version "8.0.1"
id "run.halo.plugin.devtools" version "0.0.9"
}
Expand Down Expand Up @@ -31,26 +30,6 @@ tasks.withType(JavaCompile).configureEach {
options.encoding = "UTF-8"
}

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

tasks.register('buildFrontend', PnpmTask) {
args = ['build']
dependsOn('installDepsForUI')
}

tasks.register('installDepsForUI', PnpmTask) {
args = ['install']
}

build {
// build frontend before build
tasks.named('compileJava').configure {
dependsOn('buildFrontend')
}
}

halo {
version = '2.17'
superAdminUsername = 'admin'
Expand Down
3 changes: 1 addition & 2 deletions src/main/resources/extensions/policy-template-alist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ spec:
name: secretName
required: true
label: secretName
requiredKey: username
help: key:username,password 填入你的 AList 站点用户名和密码,修改配置后,需要重新验证来刷新缓存
help: 需要创建一个包含 key 为 username、password 的密钥,分别填入你的 AList 站点用户名和密码,修改配置后,需要重新验证来刷新缓存
12 changes: 6 additions & 6 deletions src/main/resources/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: plugin.halo.run/v1alpha1
kind: Plugin
metadata:
name: PluginAList
# annotations:
# "store.halo.run/app-id": "app-KfOps"
name: alist-integration
annotations:
"store.halo.run/app-id": "app-wEGMV"
spec:
enabled: true
requires: ">=2.17.0"
Expand All @@ -12,12 +12,12 @@ spec:
website: https://github.com/halo-dev
settingName: plugin-alist-settings
configMapName: plugin-alist-configMap
homepage: https://github.com/halo-sigs/plugin-alist#readme
homepage: https://www.halo.run/store/apps/app-wEGMV
repo: https://github.com/halo-sigs/plugin-alist
issues: https://github.com/halo-sigs/plugin-alist/issues
displayName: "AList 存储库"
description: "支持创建 AList 类型的存储库"
description: "支持创建 AList 类型的附件存储策略"
logo: logo.svg
license:
- name: "GPL-3.0"
url: "https://github.com/halo-sigs/plugin-alist/blob/main/LICENSE"
url: "https://github.com/halo-sigs/plugin-alist/blob/main/LICENSE"
12 changes: 0 additions & 12 deletions ui/.editorconfig

This file was deleted.

18 changes: 0 additions & 18 deletions ui/.eslintrc.cjs

This file was deleted.

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

This file was deleted.

2 changes: 0 additions & 2 deletions ui/env.d.ts

This file was deleted.

44 changes: 0 additions & 44 deletions ui/package.json

This file was deleted.

Loading

0 comments on commit 47dc8a2

Please sign in to comment.