File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 61
61
cache-dependency-path : |
62
62
requirements_docs.txt
63
63
- name : Install dependencies
64
- if : steps.setup-python.outputs.cache-hit != 'true'
65
64
run : |
66
65
python -m pip install --upgrade pip
67
66
pip3 install -r requirements_docs.txt
@@ -75,12 +74,12 @@ jobs:
75
74
git pull gitlab gl-pages:gl-pages
76
75
77
76
# Delete the latest page because we're going to make it as an alias to the latest version.
78
- python -c "from mike.driver import main; main()" delete --deploy-prefix public -r $HTTPS_REMOTE -b gl-pages latest
79
- out=$(python -c "from mike.driver import main; main()" deploy --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages -u ${{ github.event.inputs.version_tag }} latest 2> stderr.txt)
77
+ mike delete --deploy-prefix public -r $HTTPS_REMOTE -b gl-pages latest
78
+ out=$(mike deploy --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages -u ${{ github.event.inputs.version_tag }} latest 2> stderr.txt)
80
79
exit_code=$?
81
80
err=$(<stderr.txt)
82
81
83
- python -c "from mike.driver import main; main()" set-default --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages latest
82
+ mike set-default --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages latest
84
83
85
84
# Display the raw output in the step
86
85
echo "${out}"
Original file line number Diff line number Diff line change 22
22
cache-dependency-path : |
23
23
requirements_docs.txt
24
24
- name : Install dependencies
25
- if : steps.setup-python.outputs.cache-hit != 'true'
26
25
run : |
27
26
python -m pip install --upgrade pip
28
27
pip3 install -r requirements_docs.txt
@@ -37,12 +36,11 @@ jobs:
37
36
git remote add gitlab "$HTTPS_REMOTE"
38
37
git pull gitlab gl-pages:gl-pages
39
38
40
- python -m mkdocs
41
- out=$(python -c "from mike.driver import main; main()" deploy --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages -u latest 2> stderr.txt)
39
+ out=$(mike deploy --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages -u latest 2> stderr.txt)
42
40
exit_code=$?
43
41
err=$(<stderr.txt)
44
42
45
- python -c "from mike.driver import main; main()" set-default --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages latest
43
+ mike set-default --deploy-prefix public -r $HTTPS_REMOTE -p -b gl-pages latest
46
44
47
45
# Display the raw output in the step
48
46
echo "${out}"
You can’t perform that action at this time.
0 commit comments