File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # .github/workflows/deploy.yml
12name : Deploy to GitHub Pages
23
34on :
45 push :
5- branches : [ master ] # or master - adjust to your default branch
6+ branches : [ main ] # Change to 'master' if needed
67
78permissions :
89 contents : read
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
You can’t perform that action at this time.
0 commit comments