-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.35 KB
/
deploy.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
49
50
51
52
name: Deploy
on:
push:
branches:
- main
workflow_dispatch:
pull_request:
branches:
- main
permissions:
id-token: write
contents: read
jobs:
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'tilt-dev'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.0
bundler-cache: true
- name: Install dependencies
run: |
bundle install
working-directory: docs
# Deploy api.tilt.dev
- name: Configure AWS credentials to access api.tilt.dev
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::710015040892:role/prod-collaboration-api.tilt.dev-20250228142654966700000001
aws-region: us-east-1
- name: Create website api.tilt.dev
run: |
JEKYLL_ENV=production bundle exec jekyll build
working-directory: docs
- name: Deploy website api.tilt.dev
run: |
aws s3 sync docs/_site s3://prod-collaboration-api.tilt.dev/ --region us-east-1 --delete
- name: Invalidate CloudFront cache for api.tilt.dev
run: |
aws cloudfront create-invalidation --distribution-id E2ZQJPGT02CCGI --paths "/*"