Skip to content

Commit

Permalink
11
Browse files Browse the repository at this point in the history
  • Loading branch information
6Kmfi6HP committed Sep 12, 2024
1 parent 8e51913 commit eee37ee
Show file tree
Hide file tree
Showing 4 changed files with 1,209 additions and 1,173 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/obfuscator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Obfuscate and Commit

on:
push:
branches: [main]
workflow_dispatch:

jobs:
obfuscate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18"

- name: Install dependencies
run: npm install -g javascript-obfuscator

- name: Obfuscate code
run: |
javascript-obfuscator index.js --output _worker.js
- name: Commit changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add _worker.js
git commit -m "Obfuscate _worker.js" || echo "No changes to commit"
git push
Loading

0 comments on commit eee37ee

Please sign in to comment.