Skip to content

Commit d12e43f

Browse files
committed
update dashboard action
Signed-off-by: xxchan <[email protected]>
1 parent cfc783e commit d12e43f

File tree

2 files changed

+7
-64
lines changed

2 files changed

+7
-64
lines changed

Diff for: .github/workflows/dashboard_main.yml renamed to .github/workflows/dashboard.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
name: Dashboard (main)
1+
name: Dashboard
22
on:
33
push:
44
branches: [main]
55
paths: [dashboard/**, proto/**]
6+
pull_request:
7+
branches: [main]
8+
paths: [dashboard/**, proto/**]
69
workflow_dispatch:
710
jobs:
811
dashboard-ui-deploy:
@@ -19,11 +22,14 @@ jobs:
1922
- name: build
2023
working-directory: ./dashboard
2124
run: |
25+
echo "::group::npm install"
2226
npm install
27+
echo "::endgroup::"
2328
npm run lint
2429
npm run build
2530
- name: Deploy
2631
uses: s0/git-publish-subdir-action@develop
32+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
2733
env:
2834
REPO: self
2935
BRANCH: dashboard-artifact

Diff for: .github/workflows/dashboard_pr.yml

-63
This file was deleted.

0 commit comments

Comments
 (0)