-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1.07 KB
/
cd.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
name: Data Engineering - Deploy to AWS Glue
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET_NAME: ${{ secrets.S3_BUCKET_NAME }}
S3_SCRIPTS_PATH: ${{ secrets.S3_SCRIPTS_PATH }}
AWS_REGION: ${{ secrets.AWS_REGION }}
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- run: |
pip install setuptools wheel
python3 setup.py bdist_wheel
# Step 1: Copy script to S3 bucket
- name: Copy script to S3 bucket
uses: jakejarvis/[email protected]
with:
args: --follow-symlinks
env:
SOURCE_DIR: "dist"
DEST_DIR: $S3_SCRIPTS_PATH
AWS_S3_BUCKET: $S3_BUCKET_NAME