Skip to content

Create CNAME

Create CNAME #44

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Load NEXT_PUBLIC_URL and NEXT_PUBLIC_BASE_PATH from .env
run: |
set -o allexport
source .env
set +o allexport
- name: Install
run: npm ci
- name: Build
run: npm run build:static
- name: Bypass Jekyll
run: touch ./out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out