Skip to content

Commit bc91d62

Browse files
committed
add github actions for deployment
1 parent a58023b commit bc91d62

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/build-deploy.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ jobs:
3838
- name: Install Python
3939
uses: actions/setup-python@v4
4040
with:
41-
python-version: '3.11'
41+
python-version: '3.12'
4242

4343
- name: Install Poetry
4444
run: |
45-
pipx install poetry==1.8.2
46-
poetry install --no-root --no-interaction
45+
pip install "poetry==1.8.2"
4746
48-
- name: Deploy to AWS
49-
run: ./node_modules/.bin/sls deploy --stage ${{ github.event.inputs.stage }}
47+
- name: Serverless Deploy
48+
uses: serverless/github-action@v4
49+
env:
50+
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
51+
with:
52+
args: deploy --stage ${{ github.event.inputs.stage }}

serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ provider:
3737
- !GetAtt LocationsQueue.Arn
3838

3939
package:
40-
individually: true
40+
individually: false
4141
patterns:
4242
- '!node_modules/**'
4343
- '!.venv/**'
@@ -111,7 +111,7 @@ resources:
111111

112112
custom:
113113
pythonRequirements:
114-
usePoetry: true
114+
usePoetry: false
115115
dockerizePip: true
116116

117117
plugins:

0 commit comments

Comments
 (0)