File tree Expand file tree Collapse file tree 16 files changed +176
-16
lines changed Expand file tree Collapse file tree 16 files changed +176
-16
lines changed Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
6870
71+
6972 - name : Update searchindex.js in repo
7073 run : |
7174 (git checkout $BRANCH
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6363
6464 - name : Build mdBook
6565 run : |
66+ git checkout "$BRANCH"
67+ git pull
6668 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
69+
6770
6871 - name : Update searchindex.js in repo
6972 run : |
8386
8487 # Sync the build to S3
8588 - name : Sync to S3
86- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
89+ run : |
90+ echo "Current branch:"
91+ git rev-parse --abbrev-ref HEAD
92+ echo "Syncing $BRANCH to S3"
93+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
94+ echo "Sync completed"
95+ echo "Cat 3 files from the book"
96+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat
Original file line number Diff line number Diff line change 6464
6565 - name : Build mdBook
6666 run : |
67+ git checkout "$BRANCH"
68+ git pull
6769 MDBOOK_BOOK__LANGUAGE=$BRANCH mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
70+
6871
6972 - name : Update searchindex.js in repo
7073 run : |
8487
8588 # Sync the build to S3
8689 - name : Sync to S3
87- run : aws s3 sync ./book s3://hacktricks-cloud/$BRANCH --delete
90+ run : |
91+ echo "Current branch:"
92+ git rev-parse --abbrev-ref HEAD
93+ echo "Syncing $BRANCH to S3"
94+ aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete
95+ echo "Sync completed"
96+ echo "Cat 3 files from the book"
97+ 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