Build Obfuscate BPB Panel #61
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Obfuscate BPB Panel | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: "0 1 * * *" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out the code | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "latest" | |
| - name: Install dependencies | |
| run: | | |
| npm install -g javascript-obfuscator | |
| - name: Clone BPB workjs | |
| run: | | |
| wget -O origin.js https://raw.githubusercontent.com/bia-pain-bache/BPB-Worker-Panel/refs/heads/main/build/unobfuscated-worker.js | |
| - name: Obfuscate BPB worker js | |
| run: | | |
| javascript-obfuscator origin.js --output _worker.js \ | |
| --compact true \ | |
| --identifier-names-generator hexadecimal \ | |
| --rename-globals true \ | |
| --string-array true \ | |
| --string-array-encoding 'base64' \ | |
| --string-array-threshold 0.75 \ | |
| --transform-object-keys true \ | |
| --self-defending false \ | |
| --simplify true | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| branch: main | |
| commit_message: ':arrow_up: update latest bpb panel' | |
| commit_author: 'github-actions[bot] <github-actions[bot]@users.noreply.github.com>' | |
| push_options: '--set-upstream' |