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"