Skip to content

Commit 99550cc

Browse files
committed
chore: setup deployment
1 parent 6093f05 commit 99550cc

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout your repository using git
18+
uses: actions/checkout@v4
19+
- name: Install, build, and upload your site
20+
uses: withastro/action@v3
21+
22+
deploy:
23+
needs: build
24+
runs-on: ubuntu-latest
25+
environment:
26+
name: github-pages
27+
url: ${{ steps.deployment.outputs.page_url }}
28+
steps:
29+
- name: Deploy to GitHub pages
30+
id: deployment
31+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)