Skip to content

Commit b85312c

Browse files
authored
Create deploy.yml
1 parent a2b4d42 commit b85312c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Or the branch you want to deploy from
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
20+
- name: Setup Pages
21+
uses: actions/configure-pages@v3
22+
23+
- name: Deploy src folder to GitHub Pages
24+
uses: actions/upload-pages-artifact@v2
25+
with:
26+
path: ./src # Deploy only the src folder
27+
28+
- name: Deploy to GitHub Pages
29+
id: deployment
30+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)