Skip to content

Commit ead248b

Browse files
authored
chore: update workflows config (#36)
### What this PR does? 更新 workflow 配置 ```release-note None ```
1 parent 2f792aa commit ead248b

File tree

4 files changed

+41
-132
lines changed

4 files changed

+41
-132
lines changed

.github/workflows/cd.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CD
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
cd:
10+
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-cd.yaml@v1
11+
secrets:
12+
halo-username: ${{ secrets.HALO_USERNAME }}
13+
halo-password: ${{ secrets.HALO_PASSWORD }}
14+
permissions:
15+
contents: write
16+
with:
17+
app-id: app-DlacW
18+
ui-path: "."

.github/workflows/ci.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
ci:
13+
uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@v1
14+
with:
15+
ui-path: "."

.github/workflows/workflow.yaml

Lines changed: 0 additions & 128 deletions
This file was deleted.

build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ node {
3131
nodeProjectDir = file("${project.projectDir}")
3232
}
3333

34-
task buildFrontend(type: PnpmTask) {
34+
tasks.register('installDepsForUI', PnpmTask) {
35+
args = ['install']
36+
}
37+
38+
tasks.register('buildFrontend', PnpmTask) {
3539
args = ['build:packages']
40+
dependsOn('installDepsForUI')
3641
}
3742

38-
build {
39-
// build frontend before build
40-
tasks.getByName('compileJava').dependsOn('buildFrontend')
43+
tasks.named('build').configure {
44+
dependsOn('buildFrontend')
4145
}
4246

4347
halo {

0 commit comments

Comments
 (0)