Skip to content

Commit 8ea51d7

Browse files
committed
Set up GitHub Actions workflow for GitHub Pages deployment
1 parent c49d64e commit 8ea51d7

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/pages.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'examples/**'
8+
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
concurrency:
17+
group: pages
18+
cancel-in-progress: true
19+
20+
jobs:
21+
deploy:
22+
runs-on: ubuntu-latest
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: actions/configure-pages@v4
31+
32+
- uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: examples/
35+
36+
- id: deployment
37+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)