Обновить .gitea/workflows/action.yaml
Some checks failed
Deploy Wishlist / deploy (push) Failing after 18s

This commit is contained in:
Dhaverd 2025-03-28 08:39:50 +03:00
parent 4feed92827
commit b6d90ebf14

View File

@ -11,7 +11,12 @@ jobs:
uses: actions/checkout@v3
- name: Create .env file from secrets
run: echo "$ENV_PROD" > .env
run: |
echo "$ENV_PROD" > .env
if [ ! -s .env ]; then
echo "Error: .env file is empty!"
exit 1
fi
- name: Install PHP dependencies
run: composer install
@ -24,7 +29,7 @@ jobs:
- name: Copy files to deployment directory
run: |
sudo rsync -av ./ ${DEPLOY_DIR}/
rsync -av ./ ${DEPLOY_DIR}/
if [ -f .env ]; then
sudo cp .env ${DEPLOY_DIR}/.env