Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 6dd024c

Browse files
authored
GitHub Action Script to build and Deploy Next.js App on GitHub Pages (#1)
* added next-pages underscore replacer * changed node version to 12 * added bundler * don't ignore dist folder * Removed ```path.join``` * sanitize output path
1 parent b6b5fb3 commit 6dd024c

File tree

6 files changed

+16506
-1
lines changed

6 files changed

+16506
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ typings/
8080

8181
# Nuxt.js build / generate output
8282
.nuxt
83-
dist
8483

8584
# Gatsby files
8685
.cache/

action.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Next Pages'
2+
description: 'Build Next.js App for GitHub Pages'
3+
inputs:
4+
inputDir:
5+
description: 'Next.js Export Directory'
6+
required: false
7+
default: "./out"
8+
outputDir:
9+
description: 'GitHub Pages Host Directory'
10+
default: "./docs"
11+
required: false
12+
runs:
13+
using: node12
14+
main: dist/index.js
15+
branding:
16+
icon: 'activity'
17+
color: '#8D33FF'

dist/index.js

+23
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)