Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to get push action to deploy to GH pages. #157

Merged
merged 1 commit into from
Jan 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading