Skip to content

Commit

Permalink
chore: update workflows config (#36)
Browse files Browse the repository at this point in the history
### What this PR does?
更新 workflow 配置

```release-note
None
```
  • Loading branch information
guqing authored Jul 3, 2024
1 parent 2f792aa commit ead248b
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 132 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-DlacW
ui-path: "."
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: "."
128 changes: 0 additions & 128 deletions .github/workflows/workflow.yaml

This file was deleted.

12 changes: 8 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,17 @@ node {
nodeProjectDir = file("${project.projectDir}")
}

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

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

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

halo {
Expand Down

0 comments on commit ead248b

Please sign in to comment.