Skip to content

Commit

Permalink
Update develop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresAcostaCruz authored Sep 26, 2024
1 parent 818b0fd commit 890e49d
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,25 @@ jobs:
port: ${{ secrets.SERVER_PORT }}
source: ${{ github.sha }}.tar.gz
target: /tmp/artifacts
# source: "phpdocxconfig.ini"
#target: /var/www/html/vendor/phpdocx/config/

- name: scp files
on: [push]
jobs:

build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: copy file via ssh password
uses: appleboy/[email protected]
with:
host: ${{ secrets.SERVER_IP }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
source: "phpdocxconfig.ini"
target: /var/www/html/vendor/phpdocx/config/

- name: Extract files and create directories
uses: appleboy/ssh-action@master
Expand All @@ -56,8 +72,8 @@ jobs:
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
port: ${{ secrets.SERVER_PORT }}
source: "phpdocxconfig.ini"
target: /var/www/html/dev/backend/vendor/
#source: "phpdocxconfig.ini"
#target: /var/www/html/vendor/phpdocx/config/
envs: GITHUB_SHA, SERVER_PASSWORD, LARAVEL_ENV
script: |
# Create a new directory
Expand Down Expand Up @@ -106,6 +122,7 @@ jobs:
#Run clean up
rm -rf /tmp/artifacts
#Run clean up
rm -rf /tmp/artifacts

0 comments on commit 890e49d

Please sign in to comment.