Skip to content

Commit 67fbcc1

Browse files
feat: gh deployment workflow
1 parent dc24dd3 commit 67fbcc1

File tree

2 files changed

+40
-2
lines changed

2 files changed

+40
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "frontend/**"
9+
- ".github/workflows/deploy-gh-pages.yaml"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 22.2.0
25+
26+
- name: Install dependencies
27+
run: |
28+
cd frontend
29+
npm install
30+
31+
- name: Build the application
32+
run: |
33+
cd frontend
34+
npm run build
35+
36+
- name: Deploy
37+
uses: JamesIves/github-pages-deploy-action@v4
38+
with:
39+
folder: ./frontend/dist

frontend/.env.production

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
VITE_BACKEND_URL=https://maintos-server.metakgp.org
2-
VITE_MAX_UPLOAD_LIMIT=10
3-
VITE_GH_OAUTH_CLIENT_ID=
2+
VITE_GH_OAUTH_CLIENT_ID=Ov23liSSsyTFMsm1CT09

0 commit comments

Comments
 (0)