We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d3598 commit 19b0cd1Copy full SHA for 19b0cd1
.github/workflows/deploy-to-s3.yml
@@ -22,5 +22,6 @@ jobs:
22
aws-region: ${{secrets.AWS_REGION}}
23
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
24
- 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
+ run: | # Sync index and security txt, exclude hidden files; Sync assets and remove any that aren't in source
+ 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