5
5
tags :
6
6
- ' **'
7
7
8
- # Allows you to run this workflow manually from the Actions tab
9
8
workflow_dispatch :
10
9
11
- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
12
- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
13
- concurrency :
14
- group : " deploy-lambda"
15
- cancel-in-progress : false
16
-
17
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18
- permissions :
19
- contents : write
20
-
21
10
jobs :
22
11
deploy-lambda :
23
12
runs-on : ubuntu-latest
24
13
14
+ timeout-minutes : 15
15
+
16
+ concurrency : deploy-prod # Avoid deploying concurrently
17
+
25
18
steps :
26
19
- name : Checkout
27
20
uses : actions/checkout@v4
28
21
29
- - name : Cache composer dependencies
30
- uses : actions/cache@v4
22
+ - name : Setup PHP
23
+ uses : shivammathur/setup-php@v2
31
24
with :
32
- key : composer-release-${{ hashFiles('composer.json') }}-${{ hashFiles('composer.lock') }}
33
- restore-keys : composer-release
34
- path : vendor
25
+ php-version : ' 8.3'
26
+ coverage : none
27
+ # Install the Bref CLI as a global tool
28
+ tools : bref/cli
35
29
36
30
- name : Install composer dependencies
37
31
uses : php-actions/composer@v6
@@ -42,10 +36,11 @@ jobs:
42
36
version : 2
43
37
args : --optimize-autoloader --no-scripts --ignore-platform-reqs
44
38
45
- - name : Deploy with Serverless
46
- uses :
serverless/[email protected]
47
- with :
48
- args : deploy --stage=prod --force
39
+ - name : Add Bref Cloud team
40
+ run : |
41
+ echo "bref:" >> serverless.yml
42
+ echo " team: babeuloula" >> serverless.yml
43
+
44
+ - run : bref deploy --env=prod
49
45
env :
50
- AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
51
- AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
46
+ BREF_TOKEN : ${{ secrets.BREF_TOKEN }}
0 commit comments