Skip to content

Commit f8bda77

Browse files
committed
add new Github workflow to build and publish documentation
1 parent a6e3c7d commit f8bda77

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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

0 commit comments

Comments
 (0)