-
-
Notifications
You must be signed in to change notification settings - Fork 25
44 lines (33 loc) · 1.17 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Deploy
on:
push:
branches: ['master']
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 15
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:dev-main
- 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 }}