Skip to content

Commit

Permalink
Update ci to deploy doc without latest alias on pre-release event #1085
Browse files Browse the repository at this point in the history
… (#1086)
  • Loading branch information
hocinehacherouf authored Aug 12, 2022
1 parent 5edbd1a commit abab8ad
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish-documentation-new-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ jobs:
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Deploy docs with stable version
- name: Deploy docs with pre-release version on pre-release event
if: "github.event.release.prerelease"
run: mike deploy --push ${GITHUB_REF_NAME}
- name: Deploy docs with stable version on release event
if: "!github.event.release.prerelease"
run: mike deploy --push stable
- name: Deploy docs with latest version
- name: Deploy docs with latest version on release event
if: "!github.event.release.prerelease"
run: mike deploy --push --update-aliases ${GITHUB_REF_NAME} latest

0 comments on commit abab8ad

Please sign in to comment.