Skip to content

Commit c2254df

Browse files
committed
use official default workflow
1 parent 149983d commit c2254df

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Deploy to GitHub Pages
22

33
on:
44
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
56
push:
67
branches: [ main ]
7-
# Allow you to run this workflow manually from the Actions tab on GitHub
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
89
workflow_dispatch:
910

1011
# Allow this job to clone the repo and create a page deployment
@@ -20,11 +21,11 @@ jobs:
2021
- name: Checkout your repository using git
2122
uses: actions/checkout@v4
2223
- name: Install, build, and upload your site
23-
uses: withastro/action@v1
24-
with:
25-
path: . # The root location of your Astro project inside the repository
26-
node-version: 18 # The specific version of Node that should be used to build your site
27-
package-manager: npm # The Node package manager that should be used to install dependencies
24+
uses: withastro/action@v3
25+
# with:
26+
# path: . # The root location of your Astro project inside the repository. (optional)
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)
2829

2930
deploy:
3031
needs: build
@@ -35,4 +36,4 @@ jobs:
3536
steps:
3637
- name: Deploy to GitHub Pages
3738
id: deployment
38-
uses: actions/deploy-pages@v1
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)