-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (40 loc) · 1.3 KB
/
infra.yaml
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
38
39
40
41
42
43
44
45
46
47
48
name: AutoDeploy
on:
push:
branches:
- "aws/**"
- "production"
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v1
- name: Setup python
uses: actions/setup-python@v3
with:
python-version: '3.8'
architecture: 'x64'
- name: setup boto3
run: |
pip3 install --upgrade pip
pip3 install boto3
- name: register variables
id: setregion
run: |
echo "::set-output name=aws-region::$(./bin/github_actions.py region)"
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE }}
aws-region: ${{ steps.setregion.outputs.aws-region }}
- uses: actions/setup-node@v3
with:
node-version: "16"
- name: Run Deploy
env:
VITE_GOOGLE_MAPS_API_KEY: ${{ secrets.VITE_GOOGLE_MAPS_API_KEY }}
run: ./bin/github_actions.py deploy --doit