Skip to content

Commit

Permalink
upd: build
Browse files Browse the repository at this point in the history
  • Loading branch information
vikdiesel committed Sep 15, 2022
1 parent 4c85a3b commit 4543a06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'dist' folder
run: |
npm install
npm run deploy
npm run build
npm run export
touch out/.nojekyll
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ npm run dev
npm run build
```

#### Builds and exports
#### Exports build for static hosts

```
npm run deploy
npm run export
```

### Linting & Formatting
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"deploy": "next build && next export",
"export": "next export",
"start": "next start",
"lint": "next lint",
"format": "prettier '{components,pages,src,interfaces,hooks}/**/*.{tsx,ts,js}' --write"
Expand Down

0 comments on commit 4543a06

Please sign in to comment.