Skip to content

Commit 1b9945d

Browse files
authored
Update pages.yml
1 parent b532be6 commit 1b9945d

1 file changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/pages.yml

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

33
on:
4-
# Runs on pushes targeting the default branch
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
56
push:
6-
branches: [ master ]
7-
8-
# Allows you to run this workflow manually from the Actions tab
7+
branches: [ main ]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
99
workflow_dispatch:
1010

1111
# Allow this job to clone the repo and create a page deployment
@@ -14,19 +14,18 @@ permissions:
1414
pages: write
1515
id-token: write
1616

17-
# Allow one concurrent deployment
18-
concurrency:
19-
group: "pages"
20-
cancel-in-progress: true
21-
2217
jobs:
2318
build:
2419
runs-on: ubuntu-latest
2520
steps:
26-
- name: Checkout
27-
uses: actions/checkout@v3
28-
- name: Install, build, and upload your site output
29-
uses: SecondThundeR/action@v2.1.0
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- 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)
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)