fixinf ci.yml .htaccess
All checks were successful
CI Deploy Laravel / Test (push) Successful in 1m22s
CI Deploy Laravel / Build (push) Successful in 3m9s
CI Deploy Laravel / Deploy (push) Successful in 1m29s

This commit is contained in:
2026-05-13 14:55:47 +08:00
parent 320bb420e2
commit 2b2ce9d645

View File

@@ -79,6 +79,7 @@ jobs:
uses: actions/upload-artifact@v3.2.2-node20
with:
name: laravel-build
include-hidden-files: true
path: |
app
bootstrap
@@ -150,6 +151,8 @@ jobs:
--exclude='storage/framework/views/*' \
release/ "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_PATH}"
sshpass -e ssh -p "${DEPLOY_PORT:-22}" "${DEPLOY_USER}@${DEPLOY_HOST}" "test -f \"${DEPLOY_PATH}/public/.htaccess\" || { echo 'public/.htaccess missing after rsync'; exit 1; }"
- name: Create .env on server from secret
env:
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}