Skip to content

Commit 2ea863e

Browse files
committed
Cleaned up build commands and updated actions
1 parent 5b5b8e0 commit 2ea863e

File tree

4 files changed

+13
-2292
lines changed

4 files changed

+13
-2292
lines changed

.github/workflows/node.js.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ name: GitHub Pages deploy
55

66
on:
77
push:
8-
branches: [main]
8+
branches: [image-fix]
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313

1414
steps:
1515
- name: Checkout 🛎️
16-
uses: actions/checkout@v2.3.1
16+
uses: actions/checkout@v4.1.3
1717
- name: Use Node.js 18.x
1818
uses: actions/setup-node@v1
1919
with:
@@ -26,8 +26,8 @@ jobs:
2626
run: npm run build && touch ./out/.nojekyll
2727

2828
- name: Deploy 🚀
29-
uses: JamesIves/github-pages-deploy-action@v4.4.1
29+
uses: JamesIves/github-pages-deploy-action@v4.6.0
3030
with:
31-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
BRANCH: public # The branch the action should deploy to.
33-
FOLDER: out # The folder the action should deploy.
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
branch: public # The branch the action should deploy to.
33+
folder: out # The folder the action should deploy to.

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ jobs:
7070

7171
steps:
7272
- name: Checkout 🛎️
73-
uses: actions/checkout@v2.3.1
73+
uses: actions/checkout@v4.1.3
7474
- name: Use Node.js 18.x
7575
uses: actions/setup-node@v1
7676
with:
77-
node-version: '18.x'
77+
node-version: "18.x"
7878

7979
- name: Installing my packages
8080
run: npm ci
@@ -83,11 +83,11 @@ jobs:
8383
run: npm run build && touch ./out/.nojekyll
8484

8585
- name: Deploy 🚀
86-
uses: JamesIves/github-pages-deploy-action@v4.4.1
86+
uses: JamesIves/github-pages-deploy-action@v4.6.0
8787
with:
88-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-
BRANCH: public # The branch the action will deploy to
90-
FOLDER: out # The folder the action will deploy to
88+
token: ${{ secrets.GITHUB_TOKEN }}
89+
branch: public # The branch the action should deploy to.
90+
folder: out # The folder the action should deploy to.
9191
```
9292
9393
Once you commit these files, the actions tab for your repository will show your action running. Actions are triggered automatically after any commits by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
8-
"start": "next start",
8+
"start": "npx serve@latest out",
99
"lint": "next lint"
1010
},
1111
"dependencies": {

0 commit comments

Comments
 (0)