Skip to content

Merge pull request #11 from Priyans-hu/feat/landing-page #1

Merge pull request #11 from Priyans-hu/feat/landing-page

Merge pull request #11 from Priyans-hu/feat/landing-page #1

Workflow file for this run

name: Deploy Landing Page
on:
push:
branches: [main]
paths: ['website/**']
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json
- name: Install dependencies
run: npm ci
working-directory: website
- name: Build
run: npm run build
working-directory: website
env:
NODE_ENV: production
- uses: actions/upload-pages-artifact@v3
with:
path: website/out
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4