Skip to content

🚀 Website

🚀 Website #8

Workflow file for this run

name: "🚀 Website"
on:
workflow_dispatch:
workflow_call:
concurrency: "website"
env:
NX_PARALLEL: 1
NX: node_modules/.bin/nx
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "📥 Checkout code"
uses: actions/checkout@v4
- name: "🔧 Setup Node"
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "yarn"
- name: "📦 Install dependencies"
uses: ./.github/actions/install
- name: "💽 Restore .next/cache cache"
uses: ./.github/actions/next-cache
- name: "🔧 Setup Pages"
uses: actions/configure-pages@v5
- name: "🔨 Build"
run: ${{ env.NX }} run client:build:production
- name: "📦 Upload artifact"
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/apps/client
deploy:
permissions:
pages: write
id-token: write
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