Skip to content

Commit 266d603

Browse files
committed
[.github] Add GitHub Action to deploy site to GitHub Pages
1 parent 9dcafc3 commit 266d603

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
# Allow one concurrent deployment
9+
concurrency:
10+
group: "pages"
11+
cancel-in-progress: true
12+
13+
jobs:
14+
deploy:
15+
permissions:
16+
contents: read
17+
pages: write
18+
id-token: write
19+
environment:
20+
name: "github-pages"
21+
url: ${{ steps.deployment.outputs.page_url }}
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
- name: Setup Pages
27+
uses: actions/configure-pages@v6
28+
- name: Upload artifact
29+
uses: actions/upload-pages-artifact@v4
30+
with:
31+
path: 'site'
32+
- name: Deploy to GitHub Pages
33+
id: deployment
34+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)