Skip to content

Commit b39eb33

Browse files
committed
Chagne front to landing, fix build errors, add cicd script
1 parent fa21673 commit b39eb33

104 files changed

Lines changed: 95 additions & 21 deletions

File tree

Some content is hidden

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

.github/workflows/deploy-pages.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: pages-${{ github.ref }}
19+
cancel-in-progress: false
20+
21+
jobs:
22+
build:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
28+
- name: Install bun
29+
uses: oven-sh/setup-bun@v2
30+
31+
- name: Cache bun dependencies
32+
uses: actions/cache@v5
33+
with:
34+
path: ~/.bun/install/cache
35+
key: bun-${{ runner.os }}-${{ hashFiles('**/bun.lock') }}
36+
restore-keys: |
37+
bun-${{ runner.os }}-
38+
39+
- name: Install Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 22
43+
44+
- name: Cache Next.js build
45+
uses: actions/cache@v5
46+
with:
47+
path: |
48+
apps/landing/.next/cache
49+
key: nextjs-${{ runner.os }}-${{ hashFiles('**/bun.lock') }}-${{ hashFiles('apps/landing/**/*.{js,jsx,ts,tsx,md,mdx}') }}
50+
restore-keys: |
51+
nextjs-${{ runner.os }}-${{ hashFiles('**/bun.lock') }}-
52+
53+
- name: Install dependencies
54+
run: bun install
55+
56+
- name: Build landing
57+
run: bun run --filter landing build
58+
59+
- name: Disable Jekyll
60+
run: touch apps/landing/out/.nojekyll
61+
62+
- name: Upload artifact
63+
uses: actions/upload-pages-artifact@v3
64+
with:
65+
path: ./apps/landing/out
66+
67+
deploy:
68+
needs: build
69+
runs-on: ubuntu-latest
70+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
71+
environment:
72+
name: github-pages
73+
url: ${{ steps.deployment.outputs.page_url }}
74+
steps:
75+
- name: Deploy to GitHub Pages
76+
id: deployment
77+
uses: actions/deploy-pages@v4

apps/front/src/api.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "front",
2+
"name": "landing",
33
"version": "0.1.0",
44
"type": "module",
55
"private": true,

0 commit comments

Comments
 (0)