File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,4 +148,9 @@ jobs:
148148 # Sync the build to S3
149149 - name : Sync to S3
150150 run : aws s3 sync ./book s3://hacktricks-cloud/en --delete
151+
152+ - name : Upload root ads.txt
153+ run : |
154+ aws s3 cp ./ads.txt s3://hacktricks-cloud/ads.txt --content-type text/plain --cache-control max-age=300
155+ aws s3 cp ./ads.txt s3://hacktricks-cloud/en/ads.txt --content-type text/plain --cache-control max-age=300
151156
Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ jobs:
262262 git rev-parse --abbrev-ref HEAD
263263 echo "Syncing $BRANCH to S3"
264264 aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
265+ echo "Uploading root ads.txt"
266+ aws s3 cp ./ads.txt s3://hacktricks-cloud/ads.txt --content-type text/plain --cache-control max-age=300
267+ aws s3 cp ./ads.txt s3://hacktricks-cloud/en/ads.txt --content-type text/plain --cache-control max-age=300
265268 echo "Sync completed"
266269 echo "Cat 3 files from the book"
267270 find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
You can’t perform that action at this time.
0 commit comments