Skip to content

Commit 067dd0b

Browse files
authored
Merge pull request #18 from Heterod0x/vapi_hackathon_frontend
Vapi hackathon frontend
2 parents 9531112 + 6d97474 commit 067dd0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+20062
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: Deploy Frontend VAPI to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- "frontend_vapi/**"
8+
pull_request:
9+
branches: [main]
10+
paths:
11+
- "frontend_vapi/**"
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: false
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v4
33+
with:
34+
version: latest
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: "18"
40+
cache: "pnpm"
41+
cache-dependency-path: frontend_vapi/pnpm-lock.yaml
42+
43+
- name: Setup Pages
44+
uses: actions/configure-pages@v4
45+
with:
46+
static_site_generator: next
47+
enablement: true
48+
49+
- name: Install dependencies
50+
run: pnpm install
51+
working-directory: ./frontend_vapi
52+
53+
- name: Create .env.local file
54+
run: |
55+
echo "NEXT_PUBLIC_VAPI_KEY=${{ secrets.NEXT_PUBLIC_VAPI_KEY }}" >> .env.local
56+
echo "NEXT_PUBLIC_PRIVY_APP_ID=${{ secrets.NEXT_PUBLIC_PRIVY_APP_ID }}" >> .env.local
57+
echo "NEXT_PUBLIC_OTO_API_ENDPOINT=${{ secrets.NEXT_PUBLIC_OTO_API_ENDPOINT }}" >> .env.local
58+
echo "NEXT_PUBLIC_OTO_API_KEY=${{ secrets.NEXT_PUBLIC_OTO_API_KEY }}" >> .env.local
59+
working-directory: ./frontend_vapi
60+
61+
- name: Build with Next.js
62+
run: pnpm build
63+
working-directory: ./frontend_vapi
64+
65+
- name: Upload artifact
66+
uses: actions/upload-pages-artifact@v3
67+
with:
68+
path: ./frontend_vapi/out
69+
70+
deploy:
71+
runs-on: ubuntu-latest
72+
needs: build
73+
if: github.ref == 'refs/heads/main'
74+
75+
steps:
76+
- name: Deploy to GitHub Pages
77+
id: deployment
78+
uses: actions/deploy-pages@v4

frontend_vapi/.env.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
NEXT_PUBLIC_VAPI_KEY=
2+
NEXT_PUBLIC_PRIVY_APP_ID=
3+
PRIVY_APP_SECRET=
4+
# Oto Voice API Configuration
5+
NEXT_PUBLIC_OTO_API_ENDPOINT=
6+
NEXT_PUBLIC_OTO_API_KEY=

frontend_vapi/.gitignore

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
.env.local
75+
76+
# parcel-bundler cache (https://parceljs.org/)
77+
.cache
78+
79+
# Next.js build output
80+
.next
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# Serverless directories
96+
.serverless/
97+
98+
# FuseBox cache
99+
.fusebox/
100+
101+
# DynamoDB Local files
102+
.dynamodb/
103+
104+
# TernJS port file
105+
.tern-port
106+
107+
out

0 commit comments

Comments
 (0)