Skip to content

Commit 5b2b3cc

Browse files
committed
update github action
1 parent 0aef76f commit 5b2b3cc

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/astro.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ 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: [ master ]
7+
branches: [master]
88
# Allows you to run this workflow manually from the Actions tab on GitHub.
99
workflow_dispatch:
10-
10+
1111
# Allow this job to clone the repo and create a page deployment
1212
permissions:
1313
contents: read
@@ -19,14 +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 output
24-
uses: withastro/action@v0
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 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)
29-
# resolve-dep-from-path: false # If the dependency file should be resolved from the root location of your Astro project. Defaults to `true`. (optional)
24+
uses: withastro/action@v2
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 18. (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)
3029

3130
deploy:
3231
needs: build
@@ -37,4 +36,4 @@ jobs:
3736
steps:
3837
- name: Deploy to GitHub Pages
3938
id: deployment
40-
uses: actions/deploy-pages@v1
39+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)