Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdfw2 authored Dec 14, 2024
1 parent 5b95429 commit 58876cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:
run: |
npx wrangler deploy src/worker.js --name bpb-worker-panel --compatibility-flag [nodejs_compat] --compatibility-date 2024-10-26 --dry-run --outdir=dist
cp dist/worker.js dist/original-worker.js
npx javascript-obfuscator dist/worker.js --output _worker.js
npx javascript-obfuscator dist/worker.js --output dist/_worker.js
- name: Commit and push built worker
- name: Commit and push built worker files
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add -f _worker.js
git commit -m "Automated build: update _worker.js"
git add -f dist/original-worker.js dist/_worker.js
git commit -m "Automated build: update worker files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 58876cd

Please sign in to comment.