From 4b06acb7804ba1b54b2dd7ce7586223074080922 Mon Sep 17 00:00:00 2001 From: umer2001 Date: Sun, 5 Nov 2023 03:45:33 +0500 Subject: [PATCH] add: dploy for version 15 --- .github/workflows/deploy.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000000..a83f197776 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,29 @@ +# This is a basic workflow to help you get started with Actions + +name: CI and CD beta.zaviago.com + +on: + push: + branches: [ "version-15" ] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Deploy to DO Droplet + uses: appleboy/ssh-action@v0.1.10 + with: + host: ${{ secrets.SERVER_IP_15 }} + username: ${{ vars.SERVER_USER_15 }} + key: ${{ secrets.SERVER_KEY_15 }} + port: ${{ secrets.SERVER_PORT_15 }} + script: | + export GIT_SSH_COMMAND=~/custom_keys_git_ssh.sh + cd /home/davil/frappe-night/apps/frappe + git pull origin version-15 + yarn install + bench build --app frappe + bench migrate \ No newline at end of file