Skip to content

Commit

Permalink
Add Automated-Publish-Docs CI
Browse files Browse the repository at this point in the history
  • Loading branch information
haimlevy2006 committed Jun 23, 2024
1 parent 5482008 commit 0476c96
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/automated-publish-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,14 @@ jobs:
echo "Deploying ${{ needs.env.outputs.NEWEST_VERSION }} as latest..."
mike list
git fetch origin gh-pages --depth=1
### REMOVE "LATEST" FROM CURRENT VERSION ON THIS LINE ###
mike deploy --push --update-aliases ${{ needs.env.outputs.CURRENT_BRANCH }} ${{ needs.env.outputs.ALIAS }} latest --title=${{ needs.env.outputs.TITLE }}
mike set-default ${{ needs.env.outputs.ALIAS }} --push latest
mike deploy ${{ needs.env.outputs.CURRENT_BRANCH }} ${{ needs.env.outputs.ALIAS }} latest --title=${{ needs.env.outputs.TITLE }} --push --update-aliases
mike set-default latest --push
mike list
else
echo "Deploying ${{ needs.env.outputs.CURRENT_BRANCH }} which is not the latest version ( => ${{ needs.env.outputs.NEWEST_VERSION }} )..."
mike list
git fetch origin gh-pages --depth=1
mike deploy --push ${{ needs.env.outputs.CURRENT_BRANCH }} ${{ needs.env.outputs.ALIAS }} --title=${{ needs.env.outputs.TITLE }}
mike deploy ${{ needs.env.outputs.CURRENT_BRANCH }} ${{ needs.env.outputs.ALIAS }} --title=${{ needs.env.outputs.TITLE }} --push
mike list
fi
Expand Down

0 comments on commit 0476c96

Please sign in to comment.