From 70c6824e814579845e9fe1c4563bbf94b35cd78d Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sat, 21 Apr 2018 15:02:56 +0200 Subject: [PATCH] deployment tweaks --- README.md | 8 +++++++- deploy.sh | 11 +++++++++++ package.json | 3 ++- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100755 deploy.sh diff --git a/README.md b/README.md index 4425fb0..23c856b 100644 --- a/README.md +++ b/README.md @@ -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 +``` diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..57d55c8 --- /dev/null +++ b/deploy.sh @@ -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; diff --git a/package.json b/package.json index 518bb5e..2d5023d 100644 --- a/package.json +++ b/package.json @@ -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"