Skip to content

Commit

Permalink
Merge pull request #4 from tim-andes/gi-actions
Browse files Browse the repository at this point in the history
replace local dir with . current
  • Loading branch information
tim-andes authored Mar 8, 2024
2 parents 1674066 + bc150cc commit e2582c8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

jobs:
replace_files:
runs-on: ubuntu-latest
Expand All @@ -18,13 +22,9 @@ jobs:
- name: Replace files in S3 bucket / Static Site
run: |
aws s3 sync ${{ secrets.LOCAL_DIRECTORY_PATH }} s3://${{ secrets.BUCKET_NAME }} --delete --region <us-east-1> \
aws s3 sync . s3://${{ secrets.BUCKET_NAME }} --delete --region <us-east-1> \
--exclude "*" \
--include "index.html" \
--include "error.html" \
--include "style.css" \
--include "scripts.js"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
--include "scripts.js"

0 comments on commit e2582c8

Please sign in to comment.