Skip to content

Commit

Permalink
updates build and deploy for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen committed Nov 7, 2022
1 parent c036db9 commit a8af402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

# Build project
- name: Build project
run: npm run-script build
run: npm run-script gh-pages-build

# Push to Github Pages
- name: Github Pages
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"source": "src/index.html",
"scripts": {
"start": "parcel",
"build": "parcel build"
"build": "parcel build",
"gh-pages-build": "parcel build --public-url ."
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a8af402

Please sign in to comment.