From 5cbbf0c5745870f23dd74d71c67af18ec736c0ff Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Wed, 5 Jun 2024 09:50:30 -0500 Subject: [PATCH] feat(ci): deploy w/ script --- .github/workflows/aws.yaml | 2 +- scripts/deploy.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 scripts/deploy.sh 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/*"