Skip to content

Commit d5d82f8

Browse files
committed
fix: github action for deploy
1 parent 0fde3cd commit d5d82f8

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,34 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read
910
pages: write
1011
id-token: write
1112

13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
1217
jobs:
1318
build:
1419
runs-on: ubuntu-latest
1520
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: 20
20-
cache: npm
21-
- run: npm ci
22-
- run: npm run build
23-
- uses: actions/upload-pages-artifact@v3
24-
with:
25-
path: dist/
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
24+
- name: Install, build, and upload your site output
25+
uses: withastro/action@v6
2626

2727
deploy:
2828
needs: build
2929
runs-on: ubuntu-latest
3030
environment:
3131
name: github-pages
32-
url: ${{ steps.deploy.outputs.page_url }}
32+
url: ${{ steps.deployment.outputs.page_url }}
3333
steps:
34-
- id: deploy
35-
uses: actions/deploy-pages@v4
34+
- name: Deploy to GitHub Pages
35+
id: deployment
36+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)