Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Apr 10, 2024
1 parent 21eb0ed commit af99440
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ jobs:

- name: Copy .env
run: |
echo file_exists('.env');
php -r "file_exists('.env') || copy('.env.staging.example', '.env');"
if [ -f .env ]; then
echo "File .env exists"
else
echo "File .env does not exist"
php -r "copy('.env.staging.example', '.env');"
fi
- name: Install composer dependencies
run: composer install --no-cache --no-ansi --no-interaction --no-progress
Expand Down

0 comments on commit af99440

Please sign in to comment.