Skip to content

Update main.yml

Update main.yml #2

Workflow file for this run

name: Deploy to Instance
env:
REPO_NAME: ${{ github.event.repository.name }}
REPO_URL: ${{ github.event.repository.url }}
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Connect to AWS Lightsail, extract file and delete the file
uses: appleboy/[email protected]
with:
host: ${{ secrets.HOST_IP }}
key: ${{ secrets.SSH_KEY }}
passphrase: ""
port: 22
script: |
ls -la