@@ -16,45 +16,12 @@ jobs:
16
16
steps :
17
17
- name : Checkout your repository using git
18
18
uses : actions/checkout@v4
19
-
20
- - name : Setup PNPM
21
- uses : pnpm/action-setup@v2
22
- with :
23
- version : 8
24
-
25
- - name : Setup Node
26
- uses : actions/setup-node@v4
27
- with :
28
- node-version : 20
29
- cache : " pnpm"
30
- cache-dependency-path : " ./site/pnpm-lock.yaml"
31
-
32
- - name : Install dependencies
33
- working-directory : ./site
34
- run : pnpm install
35
-
36
- - name : Build site
37
- working-directory : ./site
38
- run : |
39
- pnpm build
40
- echo "Build complete. Checking dist directory:"
41
- ls -la dist/
42
-
43
- - name : Debug directory structure
44
- run : |
45
- echo "Current directory structure:"
46
- ls -R ./site/dist/
47
-
48
- - name : Create artifact directory
49
- run : |
50
- mkdir -p ./_site
51
- cp -r ./site/dist/* ./_site/
52
-
53
- - name : Upload Pages artifact
54
- uses : actions/upload-pages-artifact@v3
19
+ - name : Install, build, and upload your site
20
+ uses : withastro/action@v3
55
21
with :
56
- name : github-pages
57
- path : ./_site
22
+ path : ./site # The root location of your Astro project inside the repository
23
+ node-version : 20 # The specific version of Node that should be used to build your site
24
+ package-manager : pnpm@latest # Use pnpm as the package manager
58
25
59
26
deploy :
60
27
needs : build
65
32
steps :
66
33
- name : Deploy to GitHub Pages
67
34
id : deployment
68
- uses : actions/deploy-pages@v2
69
- with :
70
- artifact_name : github-pages
35
+ uses : actions/deploy-pages@v4
0 commit comments