forked from juliaying26/TigerLift
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 838 Bytes
/
frontend-cd.yml
File metadata and controls
29 lines (27 loc) · 838 Bytes
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
name: Frontend Build CD
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Build frontend
run: |
cd frontend
npm ci
npm run build
env:
VITE_GOOGLE_API_KEY: ${{ secrets.VITE_GOOGLE_API_KEY }}
- name: Commit build
run: |
git config --global user.email "github-actions@github.com"
git config --global user.name "GitHub Actions"
git add frontend/dist
git commit -m "Build frontend" || echo "No changes to commit"
git push