Skip to content

Commit 4b16c37

Browse files
committed
fix: docs
1 parent 1d48845 commit 4b16c37

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
cache-dependency-path: |
6262
requirements_docs.txt
6363
- name: Install dependencies
64-
if: steps.setup-python.outputs.cache-hit != 'true'
6564
run: |
6665
python -m pip install --upgrade pip
6766
pip3 install -r requirements_docs.txt
@@ -75,12 +74,12 @@ jobs:
7574
git pull gitlab gl-pages:gl-pages
7675
7776
# 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)
8079
exit_code=$?
8180
err=$(<stderr.txt)
8281
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
8483
8584
# Display the raw output in the step
8685
echo "${out}"

.github/workflows/docs.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
cache-dependency-path: |
2323
requirements_docs.txt
2424
- name: Install dependencies
25-
if: steps.setup-python.outputs.cache-hit != 'true'
2625
run: |
2726
python -m pip install --upgrade pip
2827
pip3 install -r requirements_docs.txt
@@ -37,12 +36,11 @@ jobs:
3736
git remote add gitlab "$HTTPS_REMOTE"
3837
git pull gitlab gl-pages:gl-pages
3938
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)
4240
exit_code=$?
4341
err=$(<stderr.txt)
4442
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
4644
4745
# Display the raw output in the step
4846
echo "${out}"

0 commit comments

Comments
 (0)