Skip to content

Commit

Permalink
Updated CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsh2509 committed Nov 20, 2023
1 parent e508f54 commit f0464e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: Deploy

on:
on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

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

- name: SSH and deploy
env:
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: |
echo "$SSH_PRIVATE_KEY" > keyfile
chmod 600 keyfile
mkdir -p ~/.ssh
cp known_hosts ~/.ssh/known_hosts
ssh -t -i keyfile [email protected] "sudo bash deploy.sh"

0 comments on commit f0464e3

Please sign in to comment.