File tree Expand file tree Collapse file tree 1 file changed +10
-28
lines changed Expand file tree Collapse file tree 1 file changed +10
-28
lines changed Original file line number Diff line number Diff line change @@ -20,33 +20,15 @@ jobs:
2020 deploy :
2121 needs : build
2222 runs-on : ubuntu-latest
23- if : ${{github.event_name=='push' && github.ref=='refs/heads/main' && github.repository_owner == 'cucapra'}}
23+ permissions :
24+ pages : write
25+ id-token : write
26+ environment :
27+ name : github-pages
28+ url : ${{ steps.deployment.outputs.page_url }}
2429 steps :
25- - name : Tailscale
26- uses : tailscale/github-action@v2
30+ - name : GitHub Pages deploy
31+ id : deployment
32+ uses : actions/deploy-pages@v4
2733 with :
28- oauth-client-id : ${{ secrets.TS_OAUTH_CLIENT_ID }}
29- oauth-secret : ${{ secrets.TS_OAUTH_SECRET }}
30- tags : tag:ci
31- - name : Download artifact
32- uses : actions/download-artifact@v4
33- with :
34- name : site
35- path : site
36- - run : ls -R
37- - name : rsync
38- env :
39- DEPLOY_HOST : courses.cit.cornell.edu
40- DEPLOY_USER : als485
41- DEPLOY_KEY : ${{ secrets.DEPLOY_KEY }}
42- DEPLOY_KNOWN_HOSTS : ${{ secrets.DEPLOY_KNOWN_HOSTS }}
43- DEPLOY_SRC : ./site/
44- DEPLOY_DEST : coursewww/capra.cs.cornell.edu/htdocs/rvref
45- run : |
46- echo "$DEPLOY_KEY" > pk
47- echo "$DEPLOY_KNOWN_HOSTS" > kh
48- chmod 600 pk
49- rsync --compress --recursive --checksum --itemize-changes --delete \
50- --perms --chmod=Du=rwx,Dgo=rx,Fu=rw,Fog=r \
51- -e "ssh -i pk -o 'UserKnownHostsFile kh'" \
52- $DEPLOY_SRC $DEPLOY_USER@$DEPLOY_HOST:$DEPLOY_DEST
34+ artifact_name : site
You can’t perform that action at this time.
0 commit comments