Skip to content

Commit 5b8fada

Browse files
committed
add github actions
1 parent 66377df commit 5b8fada

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Deploy Insights App
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
16+
- name: Change to frontend directory
17+
run: cd frontend
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
24+
- name: Install dependencies
25+
run: yarn install
26+
27+
- name: Build Insights App
28+
run: yarn workspace @lingodb/insights build
29+
30+
- name: Deploy to GitHub Pages
31+
if: success()
32+
uses: peaceiris/actions-gh-pages@v3
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
publish_dir: ./frontend/packages/insights/build

0 commit comments

Comments
 (0)