Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
FunnyPhantom authored Jul 7, 2023
1 parent 7cea21a commit 23ff245
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 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
echo hi

0 comments on commit 23ff245

Please sign in to comment.