Skip to content

Merge pull request #7 from 3sannasia/self-update-year-semester #13

Merge pull request #7 from 3sannasia/self-update-year-semester

Merge pull request #7 from 3sannasia/self-update-year-semester #13

Workflow file for this run

name: deploy
on:
push:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Pull on and restart server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.D_HOST }}
username: ${{ secrets.D_USERNAME }}
key: ${{ secrets.D_KEY }}
passphrase: ${{ secrets.D_PASSPHRASE }}
script: |
# print info
whoami
# go to repo dir
cd /home/myclasses/public_html/uiuc-course-calendar
# update
git fetch
git reset --hard origin/main