From 5c9e0b67ca700855b5489af3c8a65f7d9dda8f62 Mon Sep 17 00:00:00 2001 From: Connor McArthur Date: Mon, 13 Nov 2023 14:46:00 -0500 Subject: [PATCH] move deploy commands into action --- .github/workflows/deploy.yml | 4 +++- deploy.sh | 6 ------ 2 files changed, 3 insertions(+), 7 deletions(-) delete mode 100755 deploy.sh diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 69cb6ceb1..597618571 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,4 +21,6 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | - ./deploy.sh + bundle exec middleman build + aws s3 cp --recursive build/ s3://com.getdbt.hub/ + aws cloudfront create-invalidation --distribution-id E39VJ0QVYMOHEU --paths * diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index 89eb403a5..000000000 --- a/deploy.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -eo pipefail - -bundle install -bundle exec middleman build -aws s3 cp --recursive build/ s3://com.getdbt.hub/ -aws cloudfront create-invalidation --distribution-id E39VJ0QVYMOHEU --paths *