Merge branch 'main' of github.com:CLIMB-TRE/climb-tre.github.io #75
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
with: | |
key: mkdocs-material-${{ env.cache_id }} | |
path: .cache | |
restore-keys: | | |
mkdocs-material- | |
- run: | | |
python3 metadata/json2md.py -d 2 uploader metadata/mscape.json >> docs/mscape.md | |
python3 metadata/json2md.py -d 2 uploader metadata/pathsafe.json >> docs/pathsafe.md | |
python3 metadata/json2md.py -d 2 analysis metadata/mscape-analysis.json >> docs/mscape-analysis.md | |
python3 metadata/json2md.py -d 2 analysis metadata/pathsafe-analysis.json >> docs/pathsafe-analysis.md | |
wget https://raw.githubusercontent.com/CLIMB-TRE/onyx-client/master/README.md -O docs/onyx_client_installation_guide.md | |
# pip install 'onyx @ git+https://github.com/CLIMB-TRE/onyx-client@0b791a8237e0418aa42a2e0f98bac587d7afb95a' | |
pip install climb-onyx-client | |
pip install 'varys @ git+https://github.com/CLIMB-TRE/varys@ed2356a9d8de27cee05622710ad2fb23408c1e40' | |
pip install mkdocs-material | |
pip install mkdocstrings[python] | |
pip install mkdocs-macros-plugin | |
pip install mkdocs-with-pdf | |
find docs -iname "*.md" | xargs -I{} sh -c "echo >> {}; echo {% include \'footer.md\' %} >> {}" | |
- run: mkdocs gh-deploy --force |