Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.
Required URL of the Nexus repository.
Required Username for authentification.
Required Password for authentification.
Version to publish the Composer package as.
If not specified, will autodectect:
- If the push is for a pull request, will fail.
- If the push is for a branch, will publish as "dev-branchname".
- If the push is for a tag, will publish as the tag.
Path to package to upload, relative to repository root.
None.
uses: TUDOCK/action-composer-nexus-upload@v1
if: ${{ github.event_name == 'push' }}
with:
repository: 'https://...'
username: 'me'
password: ${{ secrets.password }}
To exclude files from the uploaded zip, add this to the composer.json
of the package:
"extra": {
"nexus-upload": {
"ignore": [
"node_modules/",
"*.css.map",
"*.ts",
"*.zip",
"webpack.config.js",
"*.json",
"*.less"
]
}
}