-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (41 loc) · 1.18 KB
/
build_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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Frontend Upload
on:
push:
paths:
- '.github/workflows/build_frontend.yml'
- 'frontend/**'
# We only run this GitHub action upon new commits to `main`
branches:
- main
- frontend
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Bun
uses: oven-sh/setup-bun@v1
- name: Install
run: bun install
- name: Build
run: bun run build
- name: Create frontend dist folder
run: mkdir frontend
- name: Reparent into dist/frontend
run: cp -r dist frontend
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: frontend/frontend
# Remove previous build files
clean: true
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
clean-exclude: |
.nojekyll
CNAME
docs