Skip to content

Commit

Permalink
Path to mike binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jayqi committed Mar 30, 2024
1 parent 4b7846c commit 80d42f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
git fetch origin gh-pages --depth=1
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
conda activate .nox/docs
mike deploy --push ~latest --title=latest
MIKE_BIN="./.nox/docs/bin/mike"
$MIKE_BIN deploy --push ~latest --title=latest
deploy:
name: Deploy docs to Netlify
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
git fetch origin gh-pages --depth=1
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
conda activate .nox/docs
mike deploy --push \
MIKE_BIN="./.nox/docs/bin/mike"
$MIKE_BIN deploy --push \
${{ steps.version.outputs.major_minor_version }}rc \
--title="${{ steps.version.outputs.major_minor_version }}rc"
Expand All @@ -77,14 +77,14 @@ jobs:
git fetch origin gh-pages --depth=1
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
MIKE_BIN="./.nox/docs/bin/mike"
# Rename old stable version
conda activate .nox/docs
mike list -j | jq
$MIKE_BIN list -j | jq
OLD_STABLE=$(mike list -j | jq -r '.[] | select(.aliases | index("stable")) | .title' | awk '{print $1;}')
echo $OLD_STABLE
mike retitle stable $OLD_STABLE
$MIKE_BIN retitle stable $OLD_STABLE
# Deploy new version as stable
mike deploy --push --update-aliases \
$MIKE_BIN deploy --push --update-aliases \
${{ steps.version.outputs.major_minor_version }} \
stable \
--title="${{ github.event.release.tag_name }} (stable)"
Expand Down

0 comments on commit 80d42f6

Please sign in to comment.