Skip to content

INTROK-168 small fixes demo site #33

INTROK-168 small fixes demo site

INTROK-168 small fixes demo site #33

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- demo
jobs:
FTP-Deploy-Action:
name: SFTP deploy & post install commands
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: 'demo'
- name: FTP-Deploy-Action
uses: SamKirkland/FTP-Deploy-Action@2.0.0
env:
FTP_SERVER: ${{ secrets.HOST }}
FTP_USERNAME: ${{ secrets.USERNAME }}
FTP_PASSWORD: ${{ secrets.PASSWORD }}
METHOD: sftp
LOCAL_DIR: .
REMOTE_DIR: ${{ secrets.SUB_DIR_DEMO }}
ARGS: --verbose --delete --exclude=.git --parallel=10 --exclude=.env --exclude=vendor --exclude=node_modules --exclude=public --exclude=storage
- 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_DEMO }}
composer install
php craft up
yarn install
yarn prod