feat: Initial composer install
Some checks failed
WordPress deployment / deploy (push) Failing after 3s
Some checks failed
WordPress deployment / deploy (push) Failing after 3s
This commit is contained in:
@@ -5,10 +5,26 @@ on: [push]
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
COMPOSER_CACHE_DIR: ~/.cache/composer
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Show current working directory
|
||||
run: pwd
|
||||
|
||||
- name: Display existing composer cache (if runner reused)
|
||||
run: ls -la $COMPOSER_CACHE_DIR || echo "No cache found"
|
||||
|
||||
- name: Install PHP dependencies
|
||||
run: |
|
||||
php -v
|
||||
composer --version
|
||||
composer install --no-interaction --prefer-dist --optimize-autoloader
|
||||
|
||||
- name: Clone WordPress scripts
|
||||
env:
|
||||
TEMPLATES_REPO_TOKEN: ${{ secrets.TEMPLATES_REPO_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user