Skip to content

Commit f86ffba

Browse files
committed
update deploy script
1 parent 537da05 commit f86ffba

File tree

2 files changed

+51
-47
lines changed

2 files changed

+51
-47
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
name: Build and Deploy
2-
on:
3-
push:
4-
branches:
5-
- master
2+
on: [push]
3+
permissions:
4+
contents: write
65
jobs:
76
build-and-deploy:
87
runs-on: ubuntu-latest
98
steps:
10-
- name: Checkout 🛎️
11-
uses: actions/[email protected]
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
1211
with:
13-
persist-credentials: false
14-
12+
node-version: 18
1513
- name: Install and Build 🔧
1614
run: |
17-
npm install
15+
npm ci
1816
npm run build -- --public-url https://bryce.io/react-intense
19-
2017
- name: Deploy 🚀
21-
uses: JamesIves/github-pages-deploy-action@3.7.1
18+
uses: JamesIves/github-pages-deploy-action@v4
2219
with:
23-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24-
BRANCH: gh-pages # The branch the action should deploy to.
25-
FOLDER: public # The folder the action should deploy.
26-
CLEAN: true # Automatically remove deleted files from the deploy branch
20+
folder: public

package-lock.json

Lines changed: 42 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)