Skip to content

Commit b66a00c

Browse files
committed
Try to get push action to deploy to GH pages.
1 parent 56f94a6 commit b66a00c

1 file changed

Lines changed: 10 additions & 16 deletions

File tree

.github/workflows/push.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)