1 parent 45758e2 commit 35807afCopy full SHA for 35807af
1 file changed
.github/workflows/deploy_pages.yml
@@ -0,0 +1,40 @@
1
+name: Deploy Pre-built Dashboard to GitHub Pages
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ paths:
8
+ - "dashboard/dist/**"
9
+ workflow_dispatch:
10
11
+permissions:
12
+ contents: read
13
+ pages: write
14
+ id-token: write
15
16
+concurrency:
17
+ group: "pages"
18
+ cancel-in-progress: true
19
20
+jobs:
21
+ deploy:
22
+ environment:
23
+ name: github-pages
24
+ url: ${{ steps.deployment.outputs.page_url }}
25
+ runs-on: ubuntu-latest
26
+ steps:
27
+ - name: Checkout repository
28
+ uses: actions/checkout@v4
29
30
+ - name: Setup GitHub Pages env
31
+ uses: actions/configure-pages@v4
32
33
+ - name: Upload static artifact
34
+ uses: actions/upload-pages-artifact@v3
35
+ with:
36
+ path: "./dashboard/dist"
37
38
+ - name: Deploy to GitHub Pages target
39
+ id: deployment
40
+ uses: actions/deploy-pages@v4
0 commit comments