File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments