Skip to content

Commit 4852200

Browse files
authored
Merge pull request #3 from gitgitWi/nextjs/v1
Fix: deploy.yml 수정
2 parents 31dc7bd + dbc9c89 commit 4852200

19 files changed

+112
-47
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable no-undef */
2+
13
module.exports = {
24
env: {
35
browser: true,

.github/workflows/deploy.yml

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,44 @@
1-
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
1+
# refs.
42
name: Node.js CI
53

64
on:
75
push:
8-
branches: [ master ]
6+
branches: [master]
97
pull_request:
10-
branches: [ master ]
8+
branches: [master]
119

1210
jobs:
1311
build:
14-
1512
runs-on: ubuntu-latest
1613

1714
strategy:
1815
matrix:
1916
node-version: [14.x]
2017

2118
steps:
22-
- uses: actions/checkout@v2
23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v2
25-
with:
26-
node-version: ${{ matrix.node-version }}
27-
cache: 'npm'
28-
# - run: npm ci
29-
- run: npm run build --if-present
30-
# - run: npm test
31-
- name: Deploy
32-
uses: JamesIves/github-pages-deploy-action@4.1.4
33-
with:
19+
- uses: actions/checkout@v2
20+
21+
- name: Use Node.js ${{ matrix.node-version }}
22+
uses: actions/setup-node@v2
23+
with:
24+
node-version: ${{ matrix.node-version }}
25+
cache: "npm"
26+
27+
- name: Install Packages
28+
run: npm ci
29+
30+
- name: Build 🔧
31+
run: npm run build
32+
env:
33+
NEXT_PUBLIC_BASE_PATH: /gitgitWi.github.io
34+
- run: npm run export
35+
env:
36+
NEXT_PUBLIC_BASE_PATH: /gitgitWi.github.io
37+
- run: touch ./out/.nojekyll
38+
39+
- name: Deploy
40+
uses: JamesIves/github-pages-deploy-action@4.1.4
41+
with:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3443
branch: gh-pages # The branch the action should deploy to.
35-
folder: build
44+
folder: out

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# next.js
1212
/.next/
13+
/out/
1314

1415
# production
1516
/build

next.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/* eslint-disable no-undef */
12
module.exports = {
23
reactStrictMode: true,
3-
}
4+
eslint: {
5+
ignoreDuringBuilds: true,
6+
},
7+
basePath: process.env.NEXT_PUBLIC_BASE_PATH,
8+
assetPrefix: process.env.NEXT_PUBLIC_BASE_PATH,
9+
};

out/.nojekyll

Whitespace-only changes.

out/_next/static/bPfk7aQNOBHQuM3fKsobf/_buildManifest.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

out/_next/static/bPfk7aQNOBHQuM3fKsobf/_ssgManifest.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

out/_next/static/chunks/framework-64eb7138163e04c228e4.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

out/_next/static/chunks/main-0786f78015b8368a3815.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

out/_next/static/chunks/pages/_app-11bd901130fa47f1f18f.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)