Skip to content

Commit 5ec8179

Browse files
Create deploy-pages.yml
1 parent a6a7284 commit 5ec8179

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy-pages.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Triggers deployment on every push to the main branch
7+
8+
workflow_dispatch: # Allows manual trigger from the Actions tab
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
jobs:
16+
deploy:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Pages
23+
uses: actions/configure-pages@v3
24+
25+
- name: Upload Artifact
26+
uses: actions/upload-pages-artifact@v2
27+
with:
28+
path: "."
29+
30+
- name: Deploy to GitHub Pages
31+
id: deployment
32+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)