-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (35 loc) · 938 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Pulled from this guide:
# https://www.linkedin.com/pulse/deploy-nextjs-app-github-pages-federico-antu%C3%B1a/
name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BASE_PATH: ""
steps:
- name: Get files
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: "lts/*"
cache: "pnpm"
- name: Install packages
run: pnpm install
- name: Build Site Navigation
run: pnpm run build-site-nav
- name: Export static files
run: pnpm run build
- name: Add .nojekyll file
run: touch ./out/.nojekyll
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out