Skip to content

Commit 7b4cea6

Browse files
committed
Edit index.html command, added css command
1 parent 11cc046 commit 7b4cea6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy-main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
rm -rf $BRANCH
7171
mv build $BRANCH
7272
#Generate an index, in case anyone lands at the root of the test domain
73-
echo '<html><body><ul>' > index.html
73+
echo '<html><head><link rel=stylesheet type=text/css href=.github/assets/index.css /></head><body><div class="head-container"><img src=https://admin-interface.opencast.org/develop/assets/opencast-white-B3KJ3o-a.svg /></div><div class="navbar-container"></div><div class="text-container"><p>Deployment for the latest development versions of the Opencast admininterface.The branches listed here correspond to Opencast's own branches.</br><b>Please select a version.</b></p></div><ul>' > index.html
7474
find . -mindepth 1 -maxdepth 1 -type d \
7575
| grep '[0-9]*.x\|develop' \
7676
| sort -r \
@@ -81,5 +81,9 @@ jobs:
8181
env:
8282
BRANCH: ${{needs.detect.outputs.branch}}
8383

84+
- name: update CSS and other assets
85+
if: github.ref == 'refs/heads/develop'
86+
run: cp -r .github/assets admin-interface-test/
87+
8488
- name: Push updates
8589
run: git push origin gh-pages --force

0 commit comments

Comments
 (0)