File tree 1 file changed +56
-0
lines changed
1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ workflow_dispatch :
8
+
9
+ pull_request :
10
+ branches :
11
+ - main
12
+
13
+ permissions :
14
+ id-token : write
15
+ contents : read
16
+
17
+ jobs :
18
+ release :
19
+ runs-on : ubuntu-latest
20
+ if : github.repository_owner == 'tilt-dev'
21
+ steps :
22
+ - name : Checkout
23
+ uses : actions/checkout@v4
24
+
25
+ - name : Install dependencies
26
+ run : |
27
+ git submodule init
28
+ git submodule update
29
+
30
+ - name : Setup Ruby
31
+ uses : ruby/setup-ruby@v1
32
+ with :
33
+ ruby-version : 2.7.0
34
+ bundler-cache : true
35
+ - name : Install dependencies
36
+ run : |
37
+ bundle install
38
+ working-directory : docs
39
+
40
+ # Deploy api.tilt.dev
41
+ - name : Configure AWS credentials to access api.tilt.dev
42
+ uses : aws-actions/configure-aws-credentials@v3
43
+ with :
44
+ role-to-assume : arn:aws:iam::710015040892:role/prod-collaboration-api.tilt.dev-20250228142654966700000001
45
+ aws-region : us-east-1
46
+ - name : Create website api.tilt.dev
47
+ run : |
48
+ JEKYLL_ENV=production bundle exec jekyll build -d _site
49
+ working-directory : docs
50
+
51
+ - name : Deploy website api.tilt.dev
52
+ run : |
53
+ aws s3 sync docs/_site s3://prod-collaboration-api.tilt.dev/ --region us-east-1 --delete
54
+ - name : Invalidate CloudFront cache for api.tilt.dev
55
+ run : |
56
+ aws cloudfront create-invalidation --distribution-id E2ZQJPGT02CCGI --paths "/*"
You can’t perform that action at this time.
0 commit comments