Skip to content

Commit 88c0e31

Browse files
committed
ci: deploy Pages from checked-in workflow
1 parent 1c01137 commit 88c0e31

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/pages.yml

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

0 commit comments

Comments
 (0)