Merge pull request #7 from 3sannasia/self-update-year-semester #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |