File tree Expand file tree Collapse file tree 5 files changed +189
-270
lines changed Expand file tree Collapse file tree 5 files changed +189
-270
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ pull_request :
5+ branches : [master]
6+
7+ jobs :
8+ test-and-publish :
9+ uses : ./.github/workflows/test-and-publish.yml
10+ with :
11+ environment : dev
12+ secrets : inherit
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ branches : [master]
6+
7+ jobs :
8+ test-and-publish :
9+ uses : ./.github/workflows/test-and-publish.yml
10+ with :
11+ environment : production
12+ secrets : inherit
13+
14+ publish-website :
15+ runs-on : ubuntu-latest
16+ container :
17+ image : amazon/aws-cli
18+ needs : [test-and-publish]
19+ environment : ' production'
20+ steps :
21+ - name : Download docs
22+ uses : actions/download-artifact@v3
23+ with :
24+ name : docs
25+ - name : Publish to S3
26+ run : |
27+ cd docs
28+ aws s3 sync --region eu-west-1 --delete . s3://diff2html.xyz --metadata-directive REPLACE --cache-control max-age=31557600
29+ aws cloudfront create-invalidation --region eu-west-1 --distribution-id $AWS_CF_DISTRIBUTION_ID --paths /index.html /demo.html /sitemap.xml /robots.txt
You can’t perform that action at this time.
0 commit comments