Builds the extension zip and validates it using shopware-cli.
Checks out the repository
Installs shopware-cli
Builds the extension zip using shopware-cli
Validates the zip file (built-in checks, --only sw-cli)
Uploads the extension zip directly, without wrapping it in another zip
Input
Description
Required
Default
extensionName
Your extension name
Yes
-
path
Path to your bundle
No
.
skipCheckout
Skip the checkout step
No
false
disableGit
Use the source folder as it is
No
false
Output
Description
artifact-id
A unique identifier for the artifact
artifact-url
A download URL for the artifact
jobs :
build-zip :
uses : shopware/github-actions/build-zip@main
with :
extensionName : MyExtensionName
jobs :
build-zip :
uses : shopware/github-actions/build-zip@main
with :
extensionName : MyExtensionName
path : ./custom/plugins/MyExtension
Skip checkout (if already checked out)
jobs :
build-zip :
uses : shopware/github-actions/build-zip@main
with :
extensionName : MyExtensionName
skipCheckout : ' true'
Disable git (use source as-is)
jobs :
build-zip :
uses : shopware/github-actions/build-zip@main
with :
extensionName : MyExtensionName
disableGit : ' true'
Using the artifact output
jobs :
build-zip :
uses : shopware/github-actions/build-zip@main
id : build
with :
extensionName : MyExtensionName
download :
needs : build-zip
runs-on : ubuntu-latest
steps :
- run : echo "Download from: ${{ needs.build-zip.outputs.artifact-url }}"