Skip to content

Commit

Permalink
ci(docs): Only print python versions when running
Browse files Browse the repository at this point in the history
  • Loading branch information
tony committed Aug 16, 2022
1 parent f8278ec commit 375ca6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,11 @@ jobs:
run: echo "PUBLISH=$(echo true)" >> $GITHUB_ENV

- name: Install poetry
if: env.PUBLISH == 'true'
run: pipx install "poetry==1.1.14"

- name: Set up Python ${{ matrix.python-version }}
if: env.PUBLISH == 'true'
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -48,6 +50,7 @@ jobs:
run: poetry install --extras "docs lint"

- name: Print python versions
if: env.PUBLISH == 'true'
run: |
python -V
poetry run python -V
Expand All @@ -70,6 +73,7 @@ jobs:
SOURCE_DIR: "docs/_build/html" # optional: defaults to entire repository

- name: Purge cache on Cloudflare
if: env.PUBLISH == 'true'
uses: jakejarvis/cloudflare-purge-action@v0.3.0
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
Expand Down

0 comments on commit 375ca6b

Please sign in to comment.