Skip to content

Commit

Permalink
Merge pull request #1 from AeroBytesNL/add-CD
Browse files Browse the repository at this point in the history
Added CD
  • Loading branch information
AeroBytesNL authored Dec 20, 2024
2 parents 093c0e4 + 2fa6e1c commit c62ae83
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
name: Continuous Deployment

on:
release:
type: [published]
pull_request:
branches:
- main

push:
branches:
- main

jobs:
deploy:
Expand All @@ -14,6 +19,6 @@ jobs:
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy to server
run
- name: Run deploy sh script
run:
ssh -o StrictHostKeyChecking=no [email protected]
7 changes: 7 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

cd /home/aerobytes/domains/aerobytes.nl/public_html

git pull origin main

exit 0

0 comments on commit c62ae83

Please sign in to comment.