Skip to content

Commit

Permalink
Added deploy for demo 5
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed May 6, 2024
1 parent ffa84b6 commit 52985e9
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/demo5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- craft-demo-5
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_5 }}
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 }}
composer install
php craft up
yarn install
yarn prod

0 comments on commit 52985e9

Please sign in to comment.