Skip to content

Commit e16738e

Browse files
committed
fix: update GitHub Actions workflow for deployment
1 parent 9296732 commit e16738e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
# Trigger the workflow every time you push to the `main` branch
55
# Using a different branch name? Replace `main` with your branch’s name
66
push:
7-
branches: [ main ]
7+
branches: [main]
88
# Allows you to run this workflow manually from the Actions tab on GitHub.
99
workflow_dispatch:
1010

@@ -19,13 +19,13 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout your repository using git
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323
- name: Install, build, and upload your site
24-
uses: withastro/action@v0
24+
uses: withastro/action@v2
2525
with:
26-
path: . # The root location of your Astro project inside the repository. (optional)
27-
node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
28-
package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
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 16. (optional)
28+
package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
2929

3030
deploy:
3131
needs: build
@@ -36,4 +36,4 @@ jobs:
3636
steps:
3737
- name: Deploy to GitHub Pages
3838
id: deployment
39-
uses: actions/deploy-pages@v1
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)