1- name : Publish Pull Request Page
1+ name : PRs » Publish Pull Request Page
22
33on :
44 pull_request_target :
@@ -40,38 +40,39 @@ jobs:
4040 runs-on : ubuntu-latest
4141 needs : detect
4242 steps :
43- - name : generate build path
43+ - name : Generate build path
4444 run : echo "build=${{github.event.number}}/$(date +%Y-%m-%d_%H-%M-%S)/" >> $GITHUB_OUTPUT
4545 id : build-path
4646
47- - name : checkout code
47+ - name : Checkout sources
4848 uses : actions/checkout@v4
4949 with :
5050 ref : ${{github.event.pull_request.head.ref}}
5151 repository : ${{github.event.pull_request.head.repo.full_name}}
5252
53- - name : get node .js
53+ - name : Get Node .js
5454 uses : actions/setup-node@v4
5555 with :
5656 node-version : 20
5757
58- - name : download dependencies
58+ - name : Run npm ci
5959 run : npm ci
6060
61- - name : build app
61+ - name : Build the app
6262 run : |
6363 npm run build
6464 env :
6565 VITE_TEST_SERVER_URL : ${{needs.detect.outputs.server}}
6666 NODE_ENV : development
6767 VITE_TEST_SERVER_AUTH : " admin:opencast"
6868
69- - name : prepare git
69+
70+ - name : Prepare git
7071 run : |
7172 git config --global user.name "Admin Interface Deployment Bot"
7273 git config --global user.email "cloud@opencast.org"
7374
74- - name : prepare GitHub SSH key
75+ - name : Prepare GitHub SSH key from org level secret
7576 env :
7677 DEPLOY_KEY : ${{ secrets.DEPLOY_KEY_TEST }}
7778 run : |
@@ -80,18 +81,18 @@ jobs:
8081 chmod 600 ~/.ssh/id_ed25519
8182 ssh-keyscan github.com >> ~/.ssh/known_hosts
8283
83- - name : wait for previous workflows to finish
84+ - name : Wait for previous workflows to finish
8485 uses : softprops/turnstyle@v2
8586 with :
8687 same-branch-only : false
8788 env :
8889 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8990
90- - name : clone repository
91+ - name : Clone repository
9192 run : |
9293 git clone -b gh-pages "git@github.com:${{ github.repository_owner }}/opencast-admin-interface-test.git" admin-interface-test
9394
94- - name : store build
95+ - name : Store build in the clone
9596 env :
9697 DEPLOY_PATH : admin-interface-test/${{ steps.build-path.outputs.build }}
9798 run : |
@@ -108,7 +109,7 @@ jobs:
108109 rm -f cleanup-deployments.sh
109110 git add .
110111
111- - name : generate index.html
112+ - name : Generate index.html
112113 working-directory : admin-interface-test
113114 run : |
114115 echo '<html><body><ul>' > index.html
@@ -117,18 +118,18 @@ jobs:
117118 | sed 's/^\(.*\)$/<li><a href=\1>\1<\/a><\/li>/' >> index.html
118119 echo '</ul></body></html>' >> index.html
119120
120- - name : commit new version
121+ - name : Commit new version
121122 working-directory : admin-interface-test
122123 run : |
123124 git add .
124125 git commit --amend -m "Build ${{ steps.build-path.outputs.build }}"
125126
126- - name : push updates
127+ - name : Force push admin interface test branch
127128 working-directory : admin-interface-test
128129 run : |
129130 git push origin gh-pages --force
130131
131- - name : add comment with deployment location
132+ - name : Add comment with deployment location
132133 uses : thollander/actions-comment-pull-request@v3
133134 with :
134135 comment-tag : static-test-deployment
0 commit comments