1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2025-01-03 10:25:00 +01:00

deployment tweaks

This commit is contained in:
Matthias Kretschmann 2018-04-21 15:02:56 +02:00
parent 9d577f9c90
commit 70c6824e81
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 20 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# matthiaskretschmann.com
> Portfolio of Matthias Kretschmann
[![build status](https://www.git.berlin/kremalicious/portfolio/badges/master/build.svg)](https://www.git.berlin/kremalicious/portfolio/commits/master)
[![pipeline status](https://git.berlin/m/portfolio/badges/master/pipeline.svg)](https://git.berlin/m/portfolio/commits/master)
## Development
@ -9,3 +9,9 @@
npm i
npm start
```
## Deployment
```bash
npm run deploy
```

11
deploy.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -e;
aws s3 sync ./public s3://beta.matthiaskretschmann.com --delete --acl public-read
echo "---------------------------------------------"
echo " ✓ done deployment "
echo "---------------------------------------------"
exit;

View File

@ -36,7 +36,8 @@
"build": "gatsby build",
"start": "gatsby develop",
"format": "prettier --write 'src/**/*.js'",
"test": "npm run lint"
"test": "npm run lint",
"deploy": "./deploy.sh"
},
"browserslist": [
"defaults"