From c0c9e687294ffc9af498c604ebfc581875e758f7 Mon Sep 17 00:00:00 2001 From: MMD Date: Tue, 8 Oct 2024 09:08:16 +0330 Subject: [PATCH] Add dev deploy action --- .github/workflows/dev-deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/dev-deploy.yml diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml new file mode 100644 index 00000000..6a9ab3ae --- /dev/null +++ b/.github/workflows/dev-deploy.yml @@ -0,0 +1,22 @@ +name: 'dev-deploy' + +on: + push: + branches: + - develop + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Cloning repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Push to dokku + uses: dokku/github-action@master + with: + git_remote_url: 'ssh://dokku@dokku.me:22/appname' + ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }} + branch: 'develop' \ No newline at end of file