Skip to content

⬆️ Upgrade dependency postcss to v8.4.45 (#613) #579

⬆️ Upgrade dependency postcss to v8.4.45 (#613)

⬆️ Upgrade dependency postcss to v8.4.45 (#613) #579

Workflow file for this run

name: Deploy to Live
on:
push:
branches:
- main
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Cache composer dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install Composer dependencies
run: composer install --no-dev --no-interaction
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Enable Corepack
run: corepack enable
- name: Install Yarn dependencies
uses: borales/actions-yarn@v5
with:
cmd: install
- name: Build production bundle
uses: borales/actions-yarn@v5
with:
cmd: build
- name: Commit and push local changes
uses: stefanzweifel/git-auto-commit-action@v5.0.1
with:
commit_message: 🍱 Apply theme changes
deploy:
needs: prepare
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
cd einstein
git pull
php82 /usr/bin/composer install --no-dev -d ${PWD}