Skip to content

Commit c89192a

Browse files
committed
wip
1 parent 7cd6bb9 commit c89192a

File tree

5 files changed

+189
-270
lines changed

5 files changed

+189
-270
lines changed

.circleci/config.yml

Lines changed: 0 additions & 219 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

0 commit comments

Comments
 (0)