Skip to content

Commit 34af26e

Browse files
authored
ci: update deployment workflow (#59)
1 parent 267a1da commit 34af26e

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Trigger the workflow every time you push to the `main` branch
5-
# Using a different branch name? Replace `main` with your branch’s name
64
push:
75
branches: [ main ]
8-
# Allows you to run this workflow manually from the Actions tab on GitHub.
96
workflow_dispatch:
107

11-
# Allow this job to clone the repo and create a page deployment
128
permissions:
139
contents: read
1410
pages: write
@@ -19,13 +15,12 @@ jobs:
1915
runs-on: ubuntu-latest
2016
steps:
2117
- name: Checkout your repository using git
22-
uses: actions/checkout@v4
18+
uses: actions/checkout@v6
19+
2320
- name: Install, build, and upload your site
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)
21+
uses: withastro/action@v6
22+
with:
23+
node-version: 24
2924

3025
deploy:
3126
needs: build
@@ -36,4 +31,4 @@ jobs:
3631
steps:
3732
- name: Deploy to GitHub Pages
3833
id: deployment
39-
uses: actions/deploy-pages@v4
34+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)