Skip to content

Commit 56269d8

Browse files
committed
Fixed the GitHub Action deployment script
1 parent 774dd47 commit 56269d8

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ jobs:
2424
- name: Build project
2525
run: npm run build # → this calls `vite build --mode production` (as defined in package.json)
2626

27+
- name: List dist contents
28+
run: ls -laR ./dist
29+
2730
- name: Upload dist as artifact
2831
uses: actions/upload-artifact@v4 # <-- Not deprecated!
2932
with:
3033
name: pages-artifact # <-- A name for the artifact
31-
path: ./dist # <-- The build output
34+
path: './dist' # <-- The build output
3235

3336
deploy:
3437
needs: build
@@ -37,14 +40,15 @@ jobs:
3740
pages: write # Required to deploy to GitHub Pages
3841
id-token: write # Required for OIDC token usage
3942

40-
steps:
41-
- name: Download artifact
42-
uses: actions/download-artifact@v4
43-
with:
44-
name: pages-artifact # <-- Must match the name used above
45-
path: dist # <-- Download into a "dist" folder
43+
# steps:
44+
# - name: Download artifact
45+
# uses: actions/download-artifact@v4
46+
# with:
47+
# name: pages-artifact # <-- Must match the name used above
48+
# path: dist # <-- Download into a "dist" folder
4649

4750
- name: Deploy to GitHub Pages
4851
uses: actions/deploy-pages@v1 # <-- Official GH Pages deployment action
4952
with:
53+
artifact_name: pages-artifact
5054
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)