Skip to content

Commit

Permalink
chore: update workflows config
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing committed Apr 3, 2024
1 parent b317992 commit 5556f2f
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 5556f2f

Please sign in to comment.