uupd/docs/V2 - WIP/bat_script_deploy-methods.md
2026-03-23 14:54:48 +00:00

43 lines
970 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

📅 GitHub Release Integration
----------------------------
- Automatically fetches version and changelog from the latest release
- Uploads ZIP via API (included in batch deployment script)
- Works with or without GitHub authentication
If you exceed GitHub API limits or use private repos:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
add_filter( 'uupd/github_token_override', function( $token, $slug ) {
return 'your_github_pat';
}, 10, 2 );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
🔧 Command Line Build & Deployment
---------------------------------
Use the included `deploy.bat` script to:
- Extract plugin headers
- Build `readme.txt`
- Generate ZIP
- Push to GitHub
- Generate `index.json`
 
You can customize the script with:
- `DEPLOY_TARGET=github` or `private`
- Plugin source and changelog locations
- Optional GitHub token loading