This commit is contained in:
Carlos Polop 2025-01-09 09:46:03 +01:00
parent 688927df98
commit f2b76a4938

View File

@ -14,12 +14,15 @@ on:
concurrency: build_master concurrency: build_master
permissions: permissions:
packages: write
id-token: write id-token: write
contents: write contents: write
jobs: jobs:
run-translation: run-translation:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: ghcr.io/hacktricks-wiki/hacktricks-cloud/translator-image:latest
environment: prod environment: prod
steps: steps:
@ -28,30 +31,9 @@ jobs:
with: with:
fetch-depth: 0 #Needed to download everything to be able to access the master & language branches fetch-depth: 0 #Needed to download everything to be able to access the master & language branches
# Install Rust and Cargo
- name: Install Rust and Cargo
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
# Install mdBook and Plugins
- name: Install mdBook and Plugins
run: |
cargo install mdbook
cargo install mdbook-alerts
cargo install mdbook-reading-time
cargo install mdbook-pagetoc
cargo install mdbook-tabs
cargo install mdbook-codename
# Build the mdBook # Build the mdBook
- name: Build mdBook - name: Build mdBook
run: MDBOOK_BOOK__LANGUAGE=en mdbook build run: MDBOOK_BOOK__LANGUAGE=en mdbook build || (echo "Error logs" && cat hacktricks-preprocessor-error.log && echo "" && echo "" && echo "Debug logs" && (cat hacktricks-preprocessor.log | tail -n 20) && exit 1)
# Cat hacktricks-preprocessor.log
#- name: Cat hacktricks-preprocessor.log
# run: cat hacktricks-preprocessor.log
# Login in AWs # Login in AWs
- name: Configure AWS credentials using OIDC - name: Configure AWS credentials using OIDC
@ -62,5 +44,5 @@ jobs:
# Sync the build to S3 # Sync the build to S3
- name: Sync to S3 - name: Sync to S3
run: aws s3 sync ./book s3://hacktricks-wiki/en --delete run: aws s3 sync ./book s3://hacktricks-cloud/en --delete