Adding Jenn Tsan's 2019 CSE paper #137
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 to EC2 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Rsync files to the server | |
uses: burnett01/[email protected] | |
with: | |
switches: -avzr --delete | |
path: './' | |
remote_path: '/var/www/html' | |
remote_host: ${{ secrets.HOST }} | |
remote_user: ${{ secrets.USERNAME }} | |
remote_key: ${{ secrets.DEPLOY_KEY }} | |
- name: Execute deployment script | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
script: | | |
cd /var/www/html | |
composer install --no-dev | |
php artisan cache:clear |