Skip to content

Commit

Permalink
Update dev-deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
mmd-mostafaee committed Oct 8, 2024
1 parent ff55680 commit 1bc12f3
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'dev-deploy'
name: Deploy to Server

on:
push:
Expand All @@ -8,15 +8,23 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Checkout code
uses: actions/checkout@v2

- name: Push to dokku
uses: dokku/github-action@master
- name: Set up SSH
uses: webfactory/[email protected]
with:
git_remote_url: '[email protected]:unitap-dev'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
branch: 'develop'
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Disable Host Key Checking
run: |
mkdir -p ~/.ssh
echo "StrictHostKeyChecking no" >> ~/.ssh/config
- name: Push to Server
run: |
git remote add dokku [email protected]:unitap-dev
git fetch --unshallow origin
git push dokku develop -f

0 comments on commit 1bc12f3

Please sign in to comment.