We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8096ea commit a1bec92Copy full SHA for a1bec92
.github/workflows/version-docs.yml
@@ -35,7 +35,12 @@ jobs:
35
git config user.email "github-actions[bot]@users.noreply.github.com"
36
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
37
38
- - name: Deploy versioned docs with mike
+ - name: Deploy docs
39
run: |
40
- TAG_NAME=${GITHUB_REF#refs/tags/}
41
- mike deploy --push --update-aliases "$TAG_NAME" latest
+ if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
+ 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