-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (34 loc) · 1.06 KB
/
deployToAWS.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
name: "Publish to SNS Topic: Triggers Deployment to AWS"
on:
workflow_dispatch:
inputs:
DEPLOYMENT_ENVIRONMENT:
type: choice
description: 'Environment'
options:
- demo
- development
required: true
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Python Packages
run: |
python -m pip install --upgrade pip
pip install boto3
- name: Run Python SNS Publish Script
working-directory: ${{ github.workspace }}
env:
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_TOPIC_ARN: ${{ secrets.AWS_TOPIC_ARN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DEPLOYMENT_ENVIRONMENT: ${{ inputs.DEPLOYMENT_ENVIRONMENT }}
run: python tools/aws_sns_publish_topic.py