Skip to content

Commit 15bd40f

Browse files
committed
check with upload step
1 parent e2b54db commit 15bd40f

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/deploy.yml

+13-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ jobs:
2424
uses: withastro/action@v2
2525
with:
2626
path: ./website
27-
node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28-
package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
27+
node-version: 20
28+
package-manager: pnpm@latest
29+
- name: Upload Artifacts
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: website-artifact
33+
path: cache/web # Specify the correct output directory here
2934

3035
deploy:
3136
needs: build
@@ -34,6 +39,12 @@ jobs:
3439
name: github-pages
3540
url: ${{ steps.deployment.outputs.page_url }}
3641
steps:
42+
- name: Checkout Repository
43+
uses: actions/checkout@v4
44+
- name: Download Artifacts
45+
uses: actions/download-artifact@v2
46+
with:
47+
name: website-artifact
3748
- name: Deploy to GitHub Pages
3849
id: deployment
3950
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)