Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs contribution #174

Merged
merged 18 commits into from
May 16, 2022
18 changes: 9 additions & 9 deletions .github/workflows/deploy_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
push:
branches: [ master ]

# paths:
# - 'src/docs/*'
# - 'project/jsonschema/sssom.schema.json'
paths:
- 'src/docs/*'
- 'src/linkml/sssom.yaml'


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
# virtualenvs-in-project: true

#----------------------------------------------
# load cached venv if cache exists
# load cached venv if cache exists
#----------------------------------------------
- name: Load cached venv
id: cached-poetry-dependencies
Expand All @@ -52,16 +52,16 @@ jobs:
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}

#----------------------------------------------
# install dependencies if cache does not exist
# install dependencies if cache does not exist
#----------------------------------------------
- name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
# run: poetry install --no-interaction --no-root
run: poetry install -E docs

#----------------------------------------------
# install your root project, if required
#----------------------------------------------
# install your root project, if required
#----------------------------------------------
# - name: Install library
# run: poetry install --no-interaction

Expand All @@ -71,7 +71,7 @@ jobs:
touch gh-pages/.nojekyll
cp -r src/docs/* gh-pages/
poetry run gen-doc -d gh-pages src/linkml/sssom.yaml

- name: Deploy to gh-pages branch
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@releases/v3
Expand All @@ -83,4 +83,4 @@ jobs:
# REPOSITORY_NAME: mapping-commons/sssom # The repository the action should deploy to
# BRANCH: gh-pages # The branch the action should deploy to.
# COMMIT_MESSAGE: 'Update documentation'
# FOLDER: . # The folder the action should deploy.
# FOLDER: . # The folder the action should deploy.