Skip to content

Commit

Permalink
Fix syntax for Docs Build Workflow (open-telemetry#1392)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanielRN authored Nov 19, 2020
1 parent 3b813eb commit 9a754ad
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 26 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout Contrib Repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
- uses: actions/checkout@v2
- name: Checkout Contrib Repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
uses: actions/checkout@v2
with:
repository: open-telemetry/opentelemetry-python-contrib
ref: ${{ env.CONTRIB_REPO_SHA }}
path: opentelemetry-python-contrib
- name: Set up Python py38
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Build docs
run: |
pip install --upgrade tox
tox -e docs
- name: Publish to gh-pages
uses: JamesIves/[email protected]
env:
ACCESS_TOKEN: ${{ secrets.DocsPushToken }}
BRANCH: gh-pages
FOLDER: docs/_build/html/
- name: Set up Python py38
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Build docs
run: |
pip install --upgrade tox
tox -e docs
- name: Publish to gh-pages
uses: JamesIves/[email protected]
env:
ACCESS_TOKEN: ${{ secrets.DocsPushToken }}
BRANCH: gh-pages
FOLDER: docs/_build/html/
7 changes: 7 additions & 0 deletions docs-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ sphinx-autodoc-typehints~=1.10.2
# doesn't work for pkg_resources.
./opentelemetry-api
./opentelemetry-sdk
./opentelemetry-python-contrib/exporter/opentelemetry-exporter-datadog
./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-grpc
./opentelemetry-instrumentation
./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-requests
./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-wsgi
./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-django
./opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-flask

# Required by ext packages
asgiref~=3.0
Expand Down
10 changes: 0 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -154,19 +154,9 @@ commands =

[testenv:docs]
deps =
-e {toxinidir}/opentelemetry-python-contrib/exporter/opentelemetry-exporter-datadog
-e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-grpc
-e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-flask
-e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-django
-e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-requests
-e {toxinidir}/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-wsgi
-c {toxinidir}/dev-requirements.txt
-r {toxinidir}/docs-requirements.txt

commands_pre =
pip install -e {toxinidir}/opentelemetry-api \
-e {toxinidir}/opentelemetry-sdk

changedir = docs

commands =
Expand Down

0 comments on commit 9a754ad

Please sign in to comment.