Skip to content

Commit 167fb2a

Browse files
committed
Updated Github Actions
1 parent 0349b5f commit 167fb2a

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
# Allows you to run this workflow manually from the Actions tab on GitHub.
99
workflow_dispatch:
1010

11-
# Allow this job to clone the repo and create a page deployment
1211
permissions:
1312
contents: read
1413
pages: write
@@ -23,9 +22,14 @@ jobs:
2322
- name: Install, build, and upload your site
2423
uses: withastro/action@v1
2524
with:
26-
path: . # The root location of your Astro project inside the repository. (optional)
27-
node-version: 23 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
28-
# package-manager: yarn # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
25+
path: .
26+
node-version: 20
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: github-pages
31+
path: ./dist
32+
if-no-files-found: error
2933

3034
deploy:
3135
needs: build
@@ -34,6 +38,10 @@ jobs:
3438
name: github-pages
3539
url: ${{ steps.deployment.outputs.page_url }}
3640
steps:
41+
- name: Download artifact
42+
uses: actions/download-artifact@v4
43+
with:
44+
name: github-pages
3745
- name: Deploy to GitHub Pages
3846
id: deployment
39-
uses: actions/deploy-pages@v4
47+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)