Skip to content

Commit eec24ac

Browse files
authored
Update deploy-gh-pages.yml
Signed-off-by: CØDE N!NJΔ <najaf.shaikh@gmail.com>
1 parent 2afa168 commit eec24ac

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/deploy-gh-pages.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
# .github/workflows/deploy.yml
12
name: Deploy to GitHub Pages
23

34
on:
45
push:
5-
branches: [ master ] # or master - adjust to your default branch
6+
branches: [ main ] # Change to 'master' if needed
67

78
permissions:
89
contents: read
@@ -20,7 +21,7 @@ jobs:
2021
url: ${{ steps.deployment.outputs.page_url }}
2122
runs-on: ubuntu-latest
2223
steps:
23-
- name: Checkout
24+
- name: Checkout repository
2425
uses: actions/checkout@v4
2526

2627
- name: Setup Node.js
@@ -32,17 +33,17 @@ jobs:
3233
- name: Install dependencies
3334
run: npm ci
3435

35-
- name: Build project
36+
- name: Build React app
3637
run: npm run build
3738

38-
- name: Setup Pages
39-
uses: actions/configure-pages@v4 # Updated to v4
39+
- name: Setup GitHub Pages
40+
uses: actions/configure-pages@v4
4041

41-
- name: Upload artifact
42-
uses: actions/upload-pages-artifact@v3 # This is the correct GitHub Pages action
42+
- name: Upload to GitHub Pages
43+
uses: actions/upload-pages-artifact@v3
4344
with:
4445
path: './dist'
4546

4647
- name: Deploy to GitHub Pages
4748
id: deployment
48-
uses: actions/deploy-pages@v4 # Updated to v4
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)