Skip to content

Commit

Permalink
chore: update workflows config (#28)
Browse files Browse the repository at this point in the history
### What this PR does?
使用新的  https://github.com/halo-sigs/reusable-workflows 来作为项目 CI ,简化配置后方便插件开发者使用而不必过多修改


```release-note
None
```
  • Loading branch information
guqing authored Apr 3, 2024
1 parent b317992 commit 9f04f1b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 108 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
ci:
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v1
with:
ui-path: "ui"
106 changes: 0 additions & 106 deletions .github/workflows/workflow.yaml

This file was deleted.

11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,20 @@ node {
nodeProjectDir = file("${project.projectDir}/ui")
}

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

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

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

halo {
Expand Down

0 comments on commit 9f04f1b

Please sign in to comment.