File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,21 +35,15 @@ jobs:
3535 path : www/main
3636 deploy :
3737 needs : build-and-test
38- runs-on : ubuntu-latest
38+ permissions :
39+ pages : write
40+ id-token : write
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
44+ runs-on : ubuntu-latest
3945 if : github.ref == 'refs/heads/main'
4046 steps :
41- - name : Download www
42- uses : actions/download-artifact@v2
43- with :
44- name : www
45- path : cmsc430
46- - name : Deploy to web
47- uses : plum-umd/github-actions-rsync@master
48- with :
49- RSYNC_OPTIONS : -rvzp
50- RSYNC_TARGET : /fs/www/class/fall2022/
51- RSYNC_SOURCE : cmsc430
52- env :
53- SSH_PRIVATE_KEY : ${{secrets.SSH_PRIVATE_KEY}}
54- SSH_USERNAME : ${{secrets.SSH_USERNAME}}
55- SSH_HOSTNAME : ${{secrets.SSH_HOSTNAME}}
47+ - name : Deploy to GitHub pages
48+ id : deployment
49+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments