Skip to content

Commit f19af7f

Browse files
Update deploy.yml
1 parent 9175158 commit f19af7f

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
name: deploy
2+
23
on:
34
push:
45
branches: [master]
56
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
611
jobs:
712
build-and-deploy:
813
runs-on: ubuntu-latest
14+
915
steps:
1016
- name: Checkout 🛎️
11-
uses: actions/checkout@v6
17+
uses: actions/checkout@v4
1218

13-
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
19+
- name: Install and Build 🔧
1420
run: |
15-
npm install
21+
npm ci
1622
npm run build
1723
24+
- name: Debug build output
25+
run: |
26+
echo "Build contents:"
27+
ls -la build
28+
1829
- name: Deploy 🚀
19-
uses: JamesIves/github-pages-deploy-action@4.1.4
30+
uses: JamesIves/github-pages-deploy-action@v4.1.4
2031
with:
21-
branch: gh-pages # The branch the action should deploy to.
22-
folder: build # The folder the action should deploy.
32+
branch: gh-pages
33+
folder: build
2334
clean: true

0 commit comments

Comments
 (0)