Skip to content

Commit

Permalink
Final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Apr 27, 2022
1 parent ba46f3e commit 9f8aada
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ on:
workflow_dispatch: # manual trigger

env:
DEPLOY_BRANCH: gh-pages # deployed docs branch
DEPLOY_BRANCH: gh-pages # deployed docs branch
ROOT_REDIRECT: latest # https://tardis-sn.github.io/tardis/latest

concurrency:
group: build-docs-${{ github.ref }}
Expand Down Expand Up @@ -108,7 +109,7 @@ jobs:
run: |
mkdir redirects && cd redirects
echo '<head>' >> index.html
echo ' <meta http-equiv="Refresh" content="0; url='/tardis/latest'"/>' >> index.html
echo ' <meta http-equiv="Refresh" content="0; url='/${{ github.event.repository.name }}/${{ env.ROOT_REDIRECT }}'"/>' >> index.html
echo '</head>' >> index.html
- name: Deploy redirect
Expand Down Expand Up @@ -145,7 +146,7 @@ jobs:
[**Click here**](${{ env.URL }}) to see your results.
env:
URL: https://tardis-sn.github.io/tardis/pull/${{ github.event.number }}/index.html
URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pull/${{ github.event.number }}/index.html
if: success() && github.event_name == 'pull_request_target'

- name: Post comment (failure)
Expand All @@ -164,5 +165,5 @@ jobs:
[**Click here**](${{ env.URL }}) to see the build log.
env:
URL: https://github.com/tardis-sn/tardis/actions/runs/${{ github.run_id }}?check_suite_focus=true
URL: https://github.com/${{ github.repository_owner }}/${{ github.event.repository.name }}/actions/runs/${{ github.run_id }}?check_suite_focus=true
if: failure() && github.event_name == 'pull_request_target'

0 comments on commit 9f8aada

Please sign in to comment.