Skip to content

Merge pull request #250 from statikbe/dead-code #124

Merge pull request #250 from statikbe/dead-code

Merge pull request #250 from statikbe/dead-code #124

Workflow file for this run

on:
push:
branches:
- develop
jobs:
FTP-Deploy-Action:
name: SFTP deploy & post install commands
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: FTP-Deploy-Action
uses: SamKirkland/[email protected]
env:
FTP_SERVER: ${{ secrets.HOST }}
FTP_USERNAME: ${{ secrets.USERNAME }}
FTP_PASSWORD: ${{ secrets.PASSWORD }}
METHOD: sftp
LOCAL_DIR: .
REMOTE_DIR: ${{ secrets.SUB_DIR_STAGING }}
ARGS: --verbose --delete --exclude=.git --parallel=10 --exclude=.env --exclude=vendor --exclude=node_modules
- name: Post deploy script
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
timeout: 60000s
script: |
cd ${{ secrets.SUB_DIR_STAGING }}
chmod +x post-deploy-craft3.sh && ./post-deploy-craft3.sh --env=staging