Skip to content

Commit 62b1ba4

Browse files
committed
change deploy pipeline file
1 parent 1933d26 commit 62b1ba4

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

.github/workflows/deploy.yaml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,36 @@ permissions:
1515
id-token: write
1616
actions: read
1717

18+
concurrency:
19+
group: "pages"
20+
cancel-in-progress: true
21+
1822
jobs:
1923
build:
2024
runs-on: ubuntu-latest
2125
steps:
2226
- name: Checkout your repository using git
2327
uses: actions/checkout@v3
28+
2429
- name: Install, build, and upload your site
25-
uses: withastro/action@v2
26-
# with:
30+
uses: withastro/action@v3
31+
with:
32+
node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
2733
# path: . # The root location of your Astro project inside the repository. (optional)
28-
# node-version: 16 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
2934
# 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)
3035

36+
- name: Install dependencies
37+
run: npm ci
38+
39+
- name: Build Astro site
40+
run: npm run build
41+
42+
- name: Upload GitHub Pages artifact
43+
uses: actions/upload-pages-artifact@v1
44+
with:
45+
path: ./dist
46+
name: github-pages
47+
3148
deploy:
3249
needs: build
3350
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)