Skip to content

Commit a1bec92

Browse files
committed
Docs: update versions-docs
1 parent a8096ea commit a1bec92

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/version-docs.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ jobs:
3535
git config user.email "github-actions[bot]@users.noreply.github.com"
3636
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
3737
38-
- name: Deploy versioned docs with mike
38+
- name: Deploy docs
3939
run: |
40-
TAG_NAME=${GITHUB_REF#refs/tags/}
41-
mike deploy --push --update-aliases "$TAG_NAME" latest
40+
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
41+
VERSION=${GITHUB_REF#refs/tags/}
42+
mike deploy --push --update-aliases "$VERSION" latest
43+
else
44+
VERSION=current
45+
mike deploy --push "$VERSION"
46+
fi

0 commit comments

Comments
 (0)