Skip to content

Commit 3534f4f

Browse files
author
gitgitWi
committed
FIX: deploy.yml, .gitignore 수정
1 parent b405b4d commit 3534f4f

14 files changed

+29
-34
lines changed

.github/workflows/deploy.yml

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +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-
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v2
26-
with:
27-
node-version: ${{ matrix.node-version }}
28-
cache: 'npm'
29-
30-
- name: Install and Build 🔧
31-
run: |
32-
npm install --production
33-
npm run build
34-
35-
- name: Deploy
36-
uses: JamesIves/github-pages-deploy-action@4.1.4
37-
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 }}
3843
branch: gh-pages # The branch the action should deploy to.
39-
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

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.

out/_next/static/chunks/pages/_error-a0e21b9b223f827fe1f2.js

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

out/_next/static/chunks/pages/index-cfa83a47d3bbb18ae5bd.js

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

0 commit comments

Comments
 (0)