forked from openziti/ziti-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 896 Bytes
/
deploy-cloudfront.yml
File metadata and controls
30 lines (26 loc) · 896 Bytes
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
on:
push:
branches:
- main
paths:
- 'cloudfront/**'
jobs:
deploy:
if: github.repository_owner == 'openziti'
name: Deploy CloudFront Function
runs-on: ubuntu-latest
steps:
- name: Checkout workspace
uses: actions/checkout@v3
- name: Configure Python
shell: bash
run: |
pip install --upgrade boto3
python --version
- name: Deploy the CloudFront Function for docs.openziti.io
shell: bash
run: python ./cloudfront/deploy-cloudfront-function.py
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ vars.AWS_REGION || secrets.AWS_REGION }}