Skip to content

Move to Lift

Move to Lift #11

Workflow file for this run

name: Deploy
on:
push:
branches: ['master']
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: Cache npm dependencies
uses: actions/cache@v4
with:
path: ~/.npm # npm cache files are stored in `~/.npm`
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: bref/cli:^1
- uses: ramsey/composer-install@v3
with:
composer-options: '--optimize-autoloader --no-dev --ignore-platform-reqs'
- run: npm ci
- run: make assets-prod
- run: bref deploy --env=prod
env:
BREF_TOKEN: ${{ secrets.BREF_TOKEN }}