forked from stratasan/engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 965 Bytes
/
engineering_deploy.yml
File metadata and controls
37 lines (36 loc) · 965 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
31
32
33
34
35
36
37
name: deploy
on:
workflow_dispatch:
inputs:
name:
description: 'Person to greet'
required: true
default: 'Mona the Octocat'
push:
branches:
- master
jobs:
deploy:
name: "Deploy"
runs-on: ubuntu-18.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@master
- name: setup python
uses: actions/setup-python@v1
with:
python-version: '3.7.x'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::196656902399:role/gh_engineering_repo
aws-region: us-east-1
- name: build site
run: |
pip install -r requirements.txt
mkdocs build --clean
- name: deploy
run: |
aws s3 sync ./site s3://engineering.stratasan.com/ --acl public-read --cache-control "public,max-age=86400"