Skip to content

Commit 9c8dcd5

Browse files
committed
Create docs.yml
1 parent be754d3 commit 9c8dcd5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/docs.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build documentation and deploy to GitHub Pages
2+
on:
3+
push:
4+
branches: ['docs']
5+
workflow_dispatch:
6+
7+
# Cancel previous run (see: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency)
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
build:
14+
uses: pmndrs/docs/.github/workflows/build.yml@app-router
15+
with:
16+
mdx: './docs'
17+
libname: 'A11y'
18+
19+
deploy:
20+
needs: build
21+
runs-on: ubuntu-latest
22+
23+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
24+
permissions:
25+
pages: write # to deploy to Pages
26+
id-token: write # to verify the deployment originates from an appropriate source
27+
28+
# Deploy to the github-pages environment
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
33+
steps:
34+
- id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)