Skip to content

Commit 2abd172

Browse files
committed
yml
1 parent c79cfe0 commit 2abd172

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ jobs:
3535
- name: Upload artifact
3636
uses: actions/upload-artifact@v4
3737
with:
38-
name: react-build
39-
path: ./build
38+
name: react-build # Name the artifact as 'react-build'
39+
path: ./build # Path to the build output directory
40+
4041
deploy:
4142
needs: build
4243
runs-on: ubuntu-latest
@@ -46,10 +47,10 @@ jobs:
4647
- name: Download artifact
4748
uses: actions/download-artifact@v4
4849
with:
49-
name: react-build # Correct artifact name
50+
name: react-build # Name should match the uploaded artifact name
5051
- name: List files after download
51-
run: ls -l
52+
run: ls -l # Confirm the artifact was downloaded correctly
5253
- name: Deploy to GitHub Pages
5354
uses: actions/deploy-pages@v4
5455
with:
55-
token: ${{ secrets.GITHUB_TOKEN }}
56+
token: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication

0 commit comments

Comments
 (0)