feat(ci): deploy w/ script
This commit is contained in:
parent
4fe54bb0b8
commit
5cbbf0c574
2 changed files with 10 additions and 1 deletions
2
.github/workflows/aws.yaml
vendored
2
.github/workflows/aws.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
9
scripts/deploy.sh
Executable file
9
scripts/deploy.sh
Executable file
|
|
@ -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/*"
|
||||
Loading…
Add table
Add a link
Reference in a new issue