Closed helgatheviking closed 7 months ago
Try:
wp dist-archive . ./deploy --plugin-dirname=mycoolplugin --create-target-dir
Hmm... that's throwing an error
Error: Parameter errors:
unknown --plugin-dirname parameter
Script wp dist-archive . ./deploy --plugin-dirname=anonymize-woocommerce-customers --create-target-dir handling the zip event returned with error code 1
Ah, there hasn’t been a tagged release since before that was added. If you’re installing with Composer, use dev-main
as the version, if you’re using the WP CLI package installer, use wp package install wp-cli/dist-archive-command:dev-main
.
@helgatheviking If you run the command staying at the plugin path then that parameter is not needed. Try following:
wp dist-archive . ./deploy --create-target-dir
Thank you @BrianHenryIE and @ernilambar !
Ah, there hasn’t been a tagged release since before that was added.
I just tagged 3.0.0: https://github.com/wp-cli/dist-archive-command/releases/tag/v3.0.0
Great. That also helps in: https://github.com/10up/action-wordpress-plugin-deploy/issues/139#issuecomment-2035180163
I keep trying
wp dist-archive . deploy/ --create-target-dir
and variations therefore but I can't seem to get the zip archive to get compressed tomycoolplugin/deploy/mycoolplugin-1.0.0.zip
it ends up generated asdeploy.zip
instead. I assume this is a path mistake I'm making but it would be nice to see an example in the docu.