diff --git a/.github/workflows/build_master.yml b/.github/workflows/build_master.yml index 4ef1dbe77..03426d99c 100644 --- a/.github/workflows/build_master.yml +++ b/.github/workflows/build_master.yml @@ -46,8 +46,12 @@ jobs: cargo install mdbook-codename # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + mdbook build # Cat hacktricks-preprocessor.log #- name: Cat hacktricks-preprocessor.log diff --git a/.github/workflows/translate_af.yml b/.github/workflows/translate_af.yml index 54410f676..20ac4d6fc 100644 --- a/.github/workflows/translate_af.yml +++ b/.github/workflows/translate_af.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_de.yml b/.github/workflows/translate_de.yml index fc7a9a463..378aaba60 100644 --- a/.github/workflows/translate_de.yml +++ b/.github/workflows/translate_de.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_el.yml b/.github/workflows/translate_el.yml index f7991884f..cb1fd56d6 100644 --- a/.github/workflows/translate_el.yml +++ b/.github/workflows/translate_el.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_es.yml b/.github/workflows/translate_es.yml index c9b9556da..861ecaa14 100644 --- a/.github/workflows/translate_es.yml +++ b/.github/workflows/translate_es.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name '*.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_fr.yml b/.github/workflows/translate_fr.yml index ee692049b..cc1a7e2b5 100644 --- a/.github/workflows/translate_fr.yml +++ b/.github/workflows/translate_fr.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_it.yml b/.github/workflows/translate_it.yml index 255e65d9d..1d2bde360 100644 --- a/.github/workflows/translate_it.yml +++ b/.github/workflows/translate_it.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_ja.yml b/.github/workflows/translate_ja.yml index bcd0a791d..3e9cbbf66 100644 --- a/.github/workflows/translate_ja.yml +++ b/.github/workflows/translate_ja.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_ko.yml b/.github/workflows/translate_ko.yml index c604ffe3c..f92862f3b 100644 --- a/.github/workflows/translate_ko.yml +++ b/.github/workflows/translate_ko.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_pl.yml b/.github/workflows/translate_pl.yml index ab0644387..a4ee088fd 100644 --- a/.github/workflows/translate_pl.yml +++ b/.github/workflows/translate_pl.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_pt.yml b/.github/workflows/translate_pt.yml index 07d5d15ea..52102d613 100644 --- a/.github/workflows/translate_pt.yml +++ b/.github/workflows/translate_pt.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_sr.yml b/.github/workflows/translate_sr.yml index 1a991f39d..c6a72344b 100644 --- a/.github/workflows/translate_sr.yml +++ b/.github/workflows/translate_sr.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_sw.yml b/.github/workflows/translate_sw.yml index bf2adf0cc..30a557fdb 100644 --- a/.github/workflows/translate_sw.yml +++ b/.github/workflows/translate_sw.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_tr.yml b/.github/workflows/translate_tr.yml index 4924f80c6..ac5ce50a5 100644 --- a/.github/workflows/translate_tr.yml +++ b/.github/workflows/translate_tr.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file diff --git a/.github/workflows/translate_uk.yml b/.github/workflows/translate_uk.yml index 0e8b8116b..6b182639f 100644 --- a/.github/workflows/translate_uk.yml +++ b/.github/workflows/translate_uk.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat diff --git a/.github/workflows/translate_zh.yml b/.github/workflows/translate_zh.yml index 7d2b3a348..a80e84931 100644 --- a/.github/workflows/translate_zh.yml +++ b/.github/workflows/translate_zh.yml @@ -104,8 +104,13 @@ jobs: git push --set-upstream origin "$BRANCH" # Build the mdBook + - name: Clean build directory + run: rm -rf ./book 2>/dev/null + - name: Build mdBook - run: mdbook build + run: | + git checkout "$BRANCH" + mdbook build # Login in AWs - name: Configure AWS credentials using OIDC @@ -123,4 +128,4 @@ jobs: aws s3 sync ./book s3://hacktricks-wiki/$BRANCH --delete echo "Sync completed" echo "Cat 3 files from the book" - find . -type f -name '*.md' -print | head -n 3 | xargs -r cat \ No newline at end of file + find . -type f -name 'index.html' -print | head -n 3 | xargs -r cat \ No newline at end of file