Skip to content

Merge branch 'main' of github.com:singharaj-usai/my-project #195

Merge branch 'main' of github.com:singharaj-usai/my-project

Merge branch 'main' of github.com:singharaj-usai/my-project #195

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy NodeJS 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 test
cd test
git clone [email protected]:Mulubwa17/ci-cd-to-digitalocean-with-github-actions.git
echo 'Deployment successful to digital ocean'