Skip to content

Commit

Permalink
chore: update project infra (#43)
Browse files Browse the repository at this point in the history
* chore: update project infra

Signed-off-by: Ryan Wang <[email protected]>

* fix ci

Signed-off-by: Ryan Wang <[email protected]>

---------

Signed-off-by: Ryan Wang <[email protected]>
  • Loading branch information
ruibaby authored Jun 14, 2024
1 parent cf7b1cd commit a070ba2
Show file tree
Hide file tree
Showing 12 changed files with 3,224 additions and 2,727 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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-TlUBt
ui-path: "console"
node-version: "20"
pnpm-version: "9"
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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: "console"
node-version: "20"
pnpm-version: "9"
138 changes: 0 additions & 138 deletions .github/workflows/workflow.yaml

This file was deleted.

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

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

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

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


halo {
version = '2.12'
}
1 change: 1 addition & 0 deletions console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"yaml": "^2.4.2"
},
"devDependencies": {
"@halo-dev/ui-plugin-bundler-kit": "^2.16.0",
"@iconify/json": "^2.2.95",
"@rushstack/eslint-patch": "^1.3.2",
"@types/jsdom": "^16.2.15",
Expand Down
Loading

0 comments on commit a070ba2

Please sign in to comment.