Skip to content

Merge pull request #141 from COS301-SE-2023/Hotfix_Admin_Manitpulte_r… #52

Merge pull request #141 from COS301-SE-2023/Hotfix_Admin_Manitpulte_r…

Merge pull request #141 from COS301-SE-2023/Hotfix_Admin_Manitpulte_r… #52

Workflow file for this run

name: Deploys, everything has already been tested
on:
push:
branches:
- main
pull_request:
types:
- closed
jobs:
deploy:
if: github.event_name == 'pull_request' && github.event.pull_request.merged
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Connect to server and trigger update
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
sudo /root/deploy.sh production