Skip to content

fix: Adjust grid layout and spacing for improved responsiveness #4

fix: Adjust grid layout and spacing for improved responsiveness

fix: Adjust grid layout and spacing for improved responsiveness #4

Workflow file for this run

name: Deploy Landing Page to GitHub Pages
on:
push:
branches: [master]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Remove dynamic routes for static export
run: |
rm -rf apps/web/src/app/\(main\)/spaces/\[id\]
rm -rf apps/web/src/app/\(public\)/share
rm -rf apps/web/src/app/invite
rm -rf apps/web/src/app/public/spaces/\[id\]
rm -f apps/web/src/app/sitemap.ts
rm -f apps/web/src/app/robots.ts
- name: Build static export
run: pnpm --filter @docStudio/web build
env:
GITHUB_PAGES: 'true'
NEXT_PUBLIC_SITE_URL: https://jason-chen-coder.github.io/DocStudio
NEXT_PUBLIC_API_URL: ''
NEXT_PUBLIC_WEBSOCKET_URL: ''
NEXT_PUBLIC_CDN_URL: ''
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: apps/web/out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4