File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : " Deploy documentation"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main # should be modified to only run when changes to the documentation folder have been pushed to the main branch
7+
8+ env :
9+ AWS_ACCOUNT_ID : ${{ vars.PRODUCTION_AWS_ACCOUNT_ID }}
10+ AWS_REGION : ca-central-1
11+ ECR_REPOSITORY : forms/api
12+ TAG_VERSION : ${{ github.ref_name }}
13+
14+ permissions :
15+ contents : write
16+
17+ jobs :
18+ deploy-documentation :
19+ runs-on : ubuntu-latest
20+ steps :
21+ - name : Checkout
22+ uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0
25+
26+ - name : Setup Python
27+ uses : actions/setup-python@v5
28+ with :
29+ python-version : 3.x
30+
31+ - name : Install MkDocs Material
32+ run : pip install mkdocs-material mkdocs-static-i18n[material]
33+
34+ - name : Push documentation to gh-pages branch
35+ working-directory : documentation
36+ run : mkdocs gh-deploy
You can’t perform that action at this time.
0 commit comments