diff --git a/.github/workflows/aws.yaml b/.github/workflows/aws.yaml index 100d96a..6d23a4b 100644 --- a/.github/workflows/aws.yaml +++ b/.github/workflows/aws.yaml @@ -20,4 +20,4 @@ jobs: aws-region: us-east-2 - name: Deploy static site to S3 bucket - run: aws s3 sync . s3://barrettruth.com --delete --exclude ".git/*" --exclude ".github/*" --exclude "README.md" --exclude ".DS_Store" --exclude ".gitignore" + run: scripts/deploy.sh diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 0000000..a359639 --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +aws s3 sync . s3://barrettruth.com --delete \ + --exclude ".git/*" \ + --exclude ".github/*" \ + --exclude "readme.md" \ + --exclude ".DS_Store" \ + --exclude ".gitignore" \ + --exclude "scripts/*"