Skip to content

Commit

Permalink
Try to get push action to deploy to GH pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Jan 28, 2024
1 parent 56f94a6 commit b66a00c
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,15 @@ jobs:
path: www/main
deploy:
needs: build-and-test
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download www
uses: actions/download-artifact@v2
with:
name: www
path: cmsc430
- name: Deploy to web
uses: plum-umd/github-actions-rsync@master
with:
RSYNC_OPTIONS: -rvzp
RSYNC_TARGET: /fs/www/class/fall2022/
RSYNC_SOURCE: cmsc430
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}}
- name: Deploy to GitHub pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit b66a00c

Please sign in to comment.