File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -34,25 +34,26 @@ jobs:
34
34
run : echo "PUBLISH=$(echo true)" >> $GITHUB_ENV
35
35
36
36
- name : Install poetry
37
+ if : env.PUBLISH == 'true'
37
38
run : pipx install "poetry==1.1.14"
38
39
39
40
- name : Set up Python ${{ matrix.python-version }}
41
+ if : env.PUBLISH == 'true'
40
42
uses : actions/setup-python@v4
41
43
with :
42
44
python-version : ${{ matrix.python-version }}
43
45
cache : ' poetry'
44
46
45
- - name : Add ~/.local/bin to PATH
46
- run : echo "$HOME/.local/bin" >> $GITHUB_PATH
47
-
48
47
- name : Install dependencies [w/ docs]
49
48
run : poetry install --extras "docs lint"
50
49
51
50
- name : Build documentation
51
+ if : env.PUBLISH == 'true'
52
52
run : |
53
53
pushd docs; make SPHINXBUILD='poetry run sphinx-build' html; popd
54
54
55
55
- name : Push documentation to S3
56
+ if : env.PUBLISH == 'true'
56
57
uses : jakejarvis/s3-sync-action@v0.5.1
57
58
with :
58
59
args : --acl public-read --follow-symlinks --delete
64
65
SOURCE_DIR : " docs/_build/html" # optional: defaults to entire repository
65
66
66
67
- name : Purge cache on Cloudflare
68
+ if : env.PUBLISH == 'true'
67
69
uses : jakejarvis/cloudflare-purge-action@v0.3.0
68
70
env :
69
71
CLOUDFLARE_TOKEN : ${{ secrets.CLOUDFLARE_TOKEN }}
You can’t perform that action at this time.
0 commit comments