Skip to content

Commit 2a80d55

Browse files
authored
Add GitHub Actions workflow for GitHub Pages deployment
1 parent def3fe7 commit 2a80d55

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

.github/workflows/gh-pages.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
1-
.github/workflows/gh-pages.yml
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout source
20+
uses: actions/checkout@v4
21+
22+
- name: Upload artifact
23+
uses: actions/upload-pages-artifact@v2
24+
with:
25+
path: ./
26+
27+
deploy:
28+
needs: build
29+
runs-on: ubuntu-latest
30+
environment:
31+
name: github-pages
32+
url: ${{ steps.deploy.outputs.page_url }}
33+
steps:
34+
- name: Deploy to GitHub Pages
35+
id: deploy
36+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)