Skip to content

Commit 04a53a1

Browse files
committed
ft: add github pages support for frontend (saves 💸 by not running nginx)
1 parent 34935f2 commit 04a53a1

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/cd-frontend-gh.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
ame: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout 🛎️
15+
uses: actions/checkout@v4
16+
- name: Setup Node.js 📦
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: '23'
20+
- name: Install Dependencies 📥
21+
run: yarn --frozen-lockfile
22+
- name: Build Project 🔧
23+
run: |
24+
mkdir -p src/generated && yarn protoc \
25+
--ts_out src/generated/ \
26+
--ts_opt long_type_string \
27+
--proto_path ./protos \
28+
--ts_opt ts_nocheck \
29+
./protos/*.proto
30+
yarn build
31+
env:
32+
VITE_GRPC_BACKEND: "https://whisper-notes-api.shivanshs9.me"
33+
- name: Deploy 🚀
34+
uses: JamesIves/github-pages-deploy-action@v4
35+
with:
36+
branch: gh-pages
37+
folder: dist

0 commit comments

Comments
 (0)