Skip to content

Use Next.js

Use Next.js #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
pull_request:
types: [closed]
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
check:
uses: ./.github/workflows/check.yml
build:
if: github.event.pull_request.merged == true
needs: [check]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup GitHuib Pages
uses: actions/configure-pages@v5
with:
static_site_generator: next
- name: Install dependencies
run: make install
- name: Build with Next.js
run: make build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Publish to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4