gh-actions
This commit is contained in:
@ -6,12 +6,21 @@ jobs:
|
|||||||
tox-docs:
|
tox-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
{%- if environment == 'internal' %}
|
||||||
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
||||||
with:
|
with:
|
||||||
tox-env: docs
|
tox-env: docs
|
||||||
|
|
||||||
- name: Upload documentation preview
|
- name: Upload documentation preview
|
||||||
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
|
{%- elif environment == 'public' %}
|
||||||
|
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
||||||
|
with:
|
||||||
|
tox-env: docs
|
||||||
|
|
||||||
|
- name: Upload documentation preview
|
||||||
|
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
|
{%- endif %}
|
||||||
with:
|
with:
|
||||||
docs_path: "doc/build/html"
|
docs_path: "doc/build/html"
|
||||||
docs_service: {{ service_uri }}
|
docs_service: {{ service_uri }}
|
||||||
|
@ -6,12 +6,21 @@ jobs:
|
|||||||
tox-pdf-docs:
|
tox-pdf-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
{%- if environment == 'internal' %}
|
||||||
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
- uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
||||||
with:
|
with:
|
||||||
tox-env: pdf-docs
|
tox-env: docs
|
||||||
|
|
||||||
- name: Upload documentation preview
|
- name: Upload documentation preview
|
||||||
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
uses: https://github.com/opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
|
{%- elif environment == 'public' %}
|
||||||
|
- uses: opentelekomcloud-infra/github-actions/.github/actions/tox-run-env@v1
|
||||||
|
with:
|
||||||
|
tox-env: docs
|
||||||
|
|
||||||
|
- name: Upload documentation preview
|
||||||
|
uses: opentelekomcloud-infra/github-actions/.github/actions/tox-upload-swift@v1
|
||||||
|
{%- endif %}
|
||||||
with:
|
with:
|
||||||
docs_path: "doc/build/pdf"
|
docs_path: "doc/build/pdf"
|
||||||
docs_service: {{ service_uri }}
|
docs_service: {{ service_uri }}
|
||||||
|
Reference in New Issue
Block a user