Skip to content

Create push.yml

Create push.yml #1

Workflow file for this run

name: Try Clone
on:
push:
branches: [master]
jobs:
deploy:
runs-on: ubuntu-24.04
steps:
- name: Deploy Express app
uses: appleboy/[email protected]
with:
host: ${{secrets.SSH_HOST}} # IP address of the server you wish to ssh into
key: ${{secrets.SSH_KEY}} # Private or public key of the server
username: ${{ secrets.SSH_USERNAME }} # User of the server you want to ssh into
script: |
mkdir ~/repo
cd ~/repo
git clone [email protected]:mastree/wedding-site-be.git
echo 'Deployment successful to digital ocean'