Skip to content

Commit b0f609e

Browse files
authored
ci: auto deploy to AWS S3 bucket (#165)
1 parent 844b9af commit b0f609e

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/deploy-S3.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy AWS S3
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy-website:
10+
name: Deploy AWS S3
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Setup Node.js environment
18+
uses: actions/[email protected]
19+
with:
20+
node-version: 14.x
21+
22+
- name: Install website dependencies
23+
run: yarn install
24+
25+
- name: Build website
26+
run: yarn build
27+
28+
- name: Configure AWS credentials
29+
uses: aws-actions/configure-aws-credentials@v1
30+
with:
31+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
32+
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
33+
aws-region: ap-southeast-1
34+
35+
- name: Deploy
36+
run: aws s3 sync ./build s3://git-contributor

public/favicon.ico

28.4 KB
Binary file not shown.

public/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
Learn how to configure a non-root public URL by running `npm run build`.
2424
-->
2525
<title>Contributor Over Time</title>
26+
<meta
27+
name="description"
28+
content="View and compare contributor over time of GitHub repositories"
29+
/>
30+
<meta name="keywords" content="Contributor Over Time,Contributor Graph,GitHub Contributors,GitHub history,Contributor chart,GitHub compare history" />
2631
<!-- Global site tag (gtag.js) - Google Analytics -->
2732
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKYX064TYR"></script>
2833
<script>

0 commit comments

Comments
 (0)