Merge branch 'release/5.2.0' #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- master | |
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/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_LIVE }} | |
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_LIVE }} | |
composer install | |
php craft up | |
yarn install | |
yarn prod |