This commit is contained in:
Carlos Polop
2026-02-14 13:19:13 +01:00
parent 7f51bac5af
commit 6e1f62369e
2 changed files with 8 additions and 0 deletions

View File

@@ -149,3 +149,8 @@ jobs:
- name: Sync to S3
run: aws s3 sync ./book s3://hacktricks-cloud/en --delete
- name: Upload root ads.txt
run: |
aws s3 cp ./ads.txt s3://hacktricks-cloud/ads.txt --content-type text/plain --cache-control max-age=300
aws s3 cp ./ads.txt s3://hacktricks-cloud/en/ads.txt --content-type text/plain --cache-control max-age=300

View File

@@ -262,6 +262,9 @@ jobs:
git rev-parse --abbrev-ref HEAD
echo "Syncing $BRANCH to S3"
aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
echo "Uploading root ads.txt"
aws s3 cp ./ads.txt s3://hacktricks-cloud/ads.txt --content-type text/plain --cache-control max-age=300
aws s3 cp ./ads.txt s3://hacktricks-cloud/en/ads.txt --content-type text/plain --cache-control max-age=300
echo "Sync completed"
echo "Cat 3 files from the book"
find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat