Skip to content

Commit b5aecb9

Browse files
Modify deploy.yml for GitHub Actions
Updated GitHub Actions workflow for deployment.
1 parent d632707 commit b5aecb9

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,20 @@
11
name: deploy
2-
32
on:
43
push:
5-
branches: [master]
6-
workflow_dispatch:
74
jobs:
85
build-and-deploy:
96
runs-on: ubuntu-latest
10-
117
steps:
128
- name: Checkout 🛎️
13-
uses: actions/checkout@v4
9+
uses: actions/checkout@v2.3.1
1410

15-
- name: Install and Build 🔧
11+
- 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.
1612
run: |
17-
npm ci
13+
npm install
1814
npm run build
1915
20-
- name: Debug build output
21-
run: |
22-
echo "Build contents:"
23-
ls -la build
24-
2516
- name: Deploy 🚀
2617
uses: JamesIves/github-pages-deploy-action@4.1.4
2718
with:
28-
branch: gh-pages
29-
folder: build
30-
clean: true
19+
branch: gh-pages # The branch the action should deploy to.
20+
folder: build # The folder the action should deploy.

0 commit comments

Comments
 (0)