File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Expand file tree Collapse file tree 3 files changed +51
-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+ build :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - name : Checkout
26+ uses : actions/checkout@v4
27+ - name : Install dependencies
28+ working-directory : ./docs
29+ run : pip install -r requirements.txt
30+ - name : Build docs
31+ working-directory : ./docs
32+ run : mkdocs build
33+ - name : Upload artifact
34+ if : github.event_name != 'pull_request'
35+ uses : actions/upload-pages-artifact@v3
36+ with :
37+ path : ./docs/site/
38+ name : site
39+ deploy :
40+ needs : build
41+ if : github.event_name != 'pull_request' && github.ref_name == 'main'
42+ environment :
43+ name : github-pages
44+ url : ${{ steps.deployment.outputs.page_url }}
45+ runs-on : ubuntu-latest
46+ steps :
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ 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