Added eCLM Source Code browser #20
Workflow file for this run
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: Deploy Docs | |
on: | |
push: | |
branches: | |
- master | |
- 'docs-**' | |
env: | |
BASE_URL: /${{ github.event.repository.name }} | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
deploy-docs: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
cache: 'pip' | |
- name: Install dependencies | |
run: pip install -r ${GITHUB_WORKSPACE}/docs/requirements.txt | |
- name: Build eCLM Source Code browser | |
working-directory: ${GITHUB_WORKSPACE}/docs | |
run: | | |
make clean src-browser | |
- name: Build eCLM doc homepage | |
working-directory: ${GITHUB_WORKSPACE}/docs | |
run: | | |
make docs | |
make linkcheck | |
- name: Upload documentation artifacts | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: "docs/_build/html" | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |