Skip to content

Commit ed004d7

Browse files
committed
Add GitHub Actions workflow for deploying site to GitHub Pages
1 parent 628a9b1 commit ed004d7

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
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 repository
18+
uses: actions/checkout@v4
19+
20+
- name: Upload site folder for Pages
21+
uses: actions/upload-pages-artifact@v1
22+
with:
23+
path: ./site
24+
25+
deploy:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Deploy to GitHub Pages
30+
uses: actions/deploy-pages@v1

0 commit comments

Comments
 (0)