Skip to content

Commit 19b0cd1

Browse files
authored
Split aws sync into two commands; make sure hidden security.txt is synced (#8)
* Update deploy-to-s3.yml * Update deploy-to-s3.yml * test * Update deploy-to-s3.yml * Update deploy-to-s3.yml * Undo test
1 parent 75d3598 commit 19b0cd1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy-to-s3.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ jobs:
2222
aws-region: ${{secrets.AWS_REGION}}
2323
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
2424
- name: Sync to S3
25-
if: github.ref == 'refs/heads/main' # Only sync static contents on merges into main branch
26-
run: aws s3 sync . s3://pyscript-static/ --exclude ".*" # Exclude hidden files
25+
run: | # Sync index and security txt, exclude hidden files; Sync assets and remove any that aren't in source
26+
aws s3 sync . s3://pyscript-static/ --include ".well-known/security.txt" --include "index.html" --exclude ".*"
27+
aws s3 sync --delete assets/ s3://pyscript-static/assets/

0 commit comments

Comments
 (0)