Skip to content

ci(fix): URL with GitHub pages #5

ci(fix): URL with GitHub pages

ci(fix): URL with GitHub pages #5

Workflow file for this run

name: πŸš€ Deploy Next.js Website to GitHub Pages
on:
push:
branches: ["website-production"]
workflow_dispatch:
env:
NODE_ENV: ${{ vars.NODE_ENV }}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
working-directory: website
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repository
uses: actions/checkout@v4
- name: 🟒 Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: "./website/package.json"
cache: npm
cache-dependency-path: "./website/package-lock.json"
- name: πŸ“¦ Install Dependencies (npm)
run: |
npm ci
- name: πŸ§ͺ Test The Site
run: |
npm test
- name: πŸ› οΈ Build and Export Site
run: |
npm run build
- name: πŸ“€ Upload Static Site
uses: actions/upload-pages-artifact@v3
with:
path: website/out
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: πŸš€ Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4