@@ -37,6 +37,9 @@ jobs:
|
||||
- name: Install production dependencies
|
||||
run: composer install --no-dev --no-interaction --prefer-dist --no-progress --optimize-autoloader
|
||||
|
||||
- name: Create deployment artifact
|
||||
run: bash scripts/build-deploy-artifact.sh
|
||||
|
||||
- name: Configure SSH
|
||||
run: |
|
||||
test -n "${DEPLOY_HOST}"
|
||||
@@ -61,19 +64,13 @@ jobs:
|
||||
|
||||
rsync -az --delete \
|
||||
-e "ssh -i ~/.ssh/deploy_key -p ${SSH_PORT}" \
|
||||
--exclude '.git/' \
|
||||
--exclude '.gitea/' \
|
||||
--exclude '.env' \
|
||||
--exclude 'env' \
|
||||
--exclude 'env.*' \
|
||||
--exclude 'writable/cache/***' \
|
||||
--exclude 'writable/logs/***' \
|
||||
--exclude 'writable/session/***' \
|
||||
--exclude 'writable/uploads/***' \
|
||||
--exclude 'writable/debugbar/***' \
|
||||
--exclude 'tests/' \
|
||||
--exclude 'phpunit.xml*' \
|
||||
./ "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/"
|
||||
build/deploy/ "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}/"
|
||||
|
||||
- name: Finalize deployment
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user