-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 895 Bytes
/
frontend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# build the frontend using vite to GitHub Pages
name: Build and Deploy Frontend
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: yarn install
working-directory: packages/frontend
- name: Build
run: yarn build
working-directory: packages/frontend
- name: Prepare public directory
run: |
mkdir public
mv dist/* public/
mv src/traces public/
working-directory: packages/frontend
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: packages/frontend/public
keep_files: true