Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
swissiety committed Nov 23, 2023
1 parent 94eff49 commit 3975689
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ jobs:
# on PR events..
- name: deploy doc in subdirectory
if: github.event_name == 'pull_request'
run: mike deploy ${{ $DOC_VERSION_NAME }}_preview --push
# TODO: set to true when the release is capable of the documentation ;) && mike props ${{ $DOC_VERSION_NAME }}_preview --set-string hidden=true --push
run: mike deploy ${DOC_VERSION_NAME}_preview --push
# TODO: set to true when the release is capable of the documentation ;) && mike props ${DOC_VERSION_NAME}_preview --set-string hidden=true --push

- name: comment link to preview
if: github.event_name == 'pull_request' && github.event.action != 'closed'
uses: marocchino/sticky-pull-request-comment@v2
with:
message: |
You updated the documentation - [Doc Preview](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ $DOC_VERSION_NAME }}_preview/).
You updated the documentation - [Doc Preview](https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${DOC_VERSION_NAME}_preview/).
# on PR close - delete preview
- name: delete the deployed preview
if: github.event_name == 'pull_request' && github.event.action == 'closed'
run: mike delete ${{ $DOC_VERSION_NAME }}_preview --push
run: mike delete ${DOC_VERSION_NAME}_preview --push


# on release events..
Expand All @@ -99,13 +99,13 @@ jobs:

- name: deploy doc in subdirectory
if: github.event_name == 'release'
run: mike deploy ${{ $DOC_VERSION_NAME }} --push
run: mike deploy ${DOC_VERSION_NAME} --push


- name: deploy doc in subdirectory
if: github.event_name == 'release'
run: mike deploy ${{ $DOC_VERSION_NAME }} --push
run: mike deploy ${DOC_VERSION_NAME} --push

- name: set the new release doc as default (release published)
if: github.event_name == 'release' && github.event.action == 'published'
run: mike deploy --push --update-aliases ${{ $DOC_VERSION_NAME }} latest
run: mike deploy --push --update-aliases ${DOC_VERSION_NAME} latest

0 comments on commit 3975689

Please sign in to comment.