Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
farreledwin committed May 21, 2024
1 parent 5a7b49e commit 1461cb9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy to Server

on:
push:
branches:
- original # Change to your branch

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up SSH
uses: webfactory/ssh-agent@v0.5.3
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Execute remote commands
run: |
ssh -o StrictHostKeyChecking=no root@45.77.146.40 << 'EOF'
dir
EOF

0 comments on commit 1461cb9

Please sign in to comment.