forked from sookcha/every2cal
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) ยท 1.01 KB
/
python-package.yml
File metadata and controls
36 lines (34 loc) ยท 1.01 KB
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
name: Deploy to Lambda with Zappa
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: run venv
run: |
python -m venv venv
source venv/bin/activate
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.EVERY_CAL_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.EVERY_CAL_SECRET_KEY_ID }}
aws-region: ap-northeast-2
- name: deploy with zappa
env:
AWS_ACCESS_KEY_ID: ${{ secrets.EVERY_CAL_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.EVERY_CAL_SECRET_KEY_ID }}
run: |
zappa update dev