diff --git a/.github/workflows/build_master.yml b/.github/workflows/build_master.yml index ecf04fcac..b7914ca7b 100644 --- a/.github/workflows/build_master.yml +++ b/.github/workflows/build_master.yml @@ -148,4 +148,9 @@ jobs: # Sync the build to S3 - 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 diff --git a/.github/workflows/translate_all.yml b/.github/workflows/translate_all.yml index cc6c178ed..df6d0321e 100644 --- a/.github/workflows/translate_all.yml +++ b/.github/workflows/translate_all.yml @@ -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