File tree Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Expand file tree Collapse file tree 3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and deploy docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : read
14+ pages : write
15+ id-token : write
16+
17+ concurrency :
18+ group : " pages"
19+ cancel-in-progress : false
20+
21+ jobs :
22+ deploy :
23+ environment :
24+ name : github-pages
25+ url : ${{ steps.deployment.outputs.page_url }}
26+ runs-on : ubuntu-latest
27+ steps :
28+ - name : Checkout
29+ uses : actions/checkout@v4
30+ - name : Build docs
31+ working-directory : ./docs
32+ run : mkdocs build
33+ - name : Setup Pages
34+ if : github.event_name != 'pull_request'
35+ uses : actions/configure-pages@v5
36+ - name : Upload artifact
37+ if : github.event_name != 'pull_request'
38+ uses : actions/upload-pages-artifact@v3
39+ with :
40+ path : ./docs/site/
41+ - name : Deploy to GitHub Pages
42+ if : github.event_name != 'pull_request'
43+ id : deployment
44+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ # Deploy Infrastructure
Original file line number Diff line number Diff line change 22site_name : FRIDGE
33repo_url : https://github.com/alan-turing-institute/fridge
44edit_uri : blob/main/docs/docs/
5+ site_url : https://alan-turing-institute.github.io/fridge
56copyright : >-
67 © The contributors.
78
You can’t perform that action at this time.
0 commit comments