File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,14 @@ jobs:
24
24
- name : Build project
25
25
run : npm run build # → this calls `vite build --mode production` (as defined in package.json)
26
26
27
+ - name : List dist contents
28
+ run : ls -laR ./dist
29
+
27
30
- name : Upload dist as artifact
28
31
uses : actions/upload-artifact@v4 # <-- Not deprecated!
29
32
with :
30
33
name : pages-artifact # <-- A name for the artifact
31
- path : ./dist # <-- The build output
34
+ path : ' ./dist' # <-- The build output
32
35
33
36
deploy :
34
37
needs : build
@@ -37,14 +40,15 @@ jobs:
37
40
pages : write # Required to deploy to GitHub Pages
38
41
id-token : write # Required for OIDC token usage
39
42
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
46
49
47
50
- name : Deploy to GitHub Pages
48
51
uses : actions/deploy-pages@v1 # <-- Official GH Pages deployment action
49
52
with :
53
+ artifact_name : pages-artifact
50
54
token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments