Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
copy not echo
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKraus committed Nov 6, 2023
1 parent 89ea19e commit 16066ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@ jobs:
run: tar -xvf public.tar

- name: Create index
run: |
echo "<!DOCTYPE html>" > public/index.html
echo "<html>" >> public/index.html
echo " <head>" >> public/index.html
echo " <title>Redirecting to main branch</title>" >> public/index.html
echo ' <meta charset="utf-8">' >> public/index.html
echo ' <meta http-equiv="refresh" content="0; url=./main/index.html">' >> public/index.html
echo ' <link rel="canonical" href="https://marda-alliance.github.io/marda_extractors_schema/main/index.html">' >> public/index.html
echo " </head> >> public/index.html
echo "</html>" >> public/index.html
run: cp docs/source/_templates/index.template public/index.html

- uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
9 changes: 9 additions & 0 deletions docs/source/_templates/index.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to main branch</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./main/index.html">
<link rel="canonical" href="https://marda-alliance.github.io/marda_extractors_schema/main/index.html">
</head>
</html>

0 comments on commit 16066ee

Please sign in to comment.