Skip to content

Commit 6d8e61d

Browse files
committed
add github pages workflow
Signed-off-by: Artem Pelenitsyn <[email protected]>
1 parent 4a99fe8 commit 6d8e61d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy-pages.yml

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

0 commit comments

Comments
 (0)