Skip to content

Commit 6e1f623

Browse files
committed
f
1 parent 7f51bac commit 6e1f623

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build_master.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/translate_all.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)