Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
Addded deployment
  • Loading branch information
FunnyPhantom authored Jul 7, 2023
1 parent d996616 commit b4e9c5e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This workflow will run when there's a push event on master branch
name: Deploy to remote server

on:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:

- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.REMOTE_HOST }} # the IP or domain of your remote server
username: ${{ secrets.REMOTE_USER }} # the username of your remote server
key: ${{ secrets.REMOTE_SSH_KEY }} # the private SSH key of your remote server
script: | # commands to be executed on the remote server
cd /var/www/html/bebras-platform/teacherInterface/bebras-tasks
git checkout master
git fetch origin
git reset --hard origin/master
git pull origin master

0 comments on commit b4e9c5e

Please sign in to comment.