1
- name : Deploy master branch
1
+ name : 🚀 Deploy Serverless (fastapi)
2
2
3
3
on :
4
4
push :
@@ -12,33 +12,31 @@ jobs:
12
12
name : Deploy
13
13
runs-on : ubuntu-latest
14
14
15
- strategy :
16
- matrix :
17
- node-version : [18.20.3]
18
-
19
15
steps :
20
- - uses : actions/checkout@v3
16
+ - name : 📥 Checkout code
17
+ uses : actions/checkout@v3
21
18
22
- - name : Set up Node.js ${{ matrix.node-version }}
19
+ - name : 🛠️ Set up Node.js ${{ matrix.node-version }}
23
20
uses : actions/setup-node@v3
24
21
with :
25
- node-version : ${{ matrix.node-version }}
22
+ node-version : 18.20.3
26
23
27
- - name : Set up Python 3.9
24
+ - name : 🐍 Set up Python 3.9
28
25
uses : actions/setup-python@v4
29
26
with :
30
27
python-version : ' 3.9'
31
28
32
- - name : Install Serverless Framework v3.38.0 globally
29
+ - name : 📦 Install Serverless Framework v3.38.0 globally
33
30
run :
npm install -g [email protected]
34
31
35
- - name : Install serverless-python-requirements globally
32
+ - name : 🧩 Install serverless-python-requirements globally
36
33
run : serverless plugin install --name serverless-python-requirements
37
34
38
- - run : npm ci
35
+ - name : 📦 Install Node.js dependencies
36
+ run : npm ci
39
37
40
38
# Ensure Serverless plugin for Python requirements is installed and deploy
41
- - name : Serverless deploy
39
+ - name : 🚀 Serverless deploy
42
40
run : serverless deploy
43
41
env :
44
42
# To link with your Serverless Framework account, equivalent to login
0 commit comments