Skip to content

Fix website top navigation useRouter usage #194

Fix website top navigation useRouter usage

Fix website top navigation useRouter usage #194

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- 'workspaces/**'
- '!workspaces/functions/**'
- '!workspaces/resume-generator/**'
- '!workspaces/firebase-functions/**'
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
NEXT_PUBLIC_HYGRAPH_URL: ${{ vars.HYGRAPH_URL }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.18.1'
cache: 'yarn'
- name: Install xvfb (Virtual Display) # puppeteer needs that
run: sudo apt-get install -y xvfb
- name: Install dependencies
run: yarn
- name: Generate opengraph
run: yarn workspace @teimurjan/website generate-opengraph:ci
- name: Generate resume
run: yarn workspace @teimurjan/website generate-resume
- name: Build
run: yarn workspace @teimurjan/website build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./workspaces/website/out