Skip to content

Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.

License

Notifications You must be signed in to change notification settings

TUDOCK/action-composer-nexus-upload

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Composer Nexus Upload/Push

Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.

Inputs

repository

Required URL of the Nexus repository.

username

Required Username for authentification.

password

Required Password for authentification.

version

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.

package-path

Path to package to upload, relative to repository root.

Outputs

None.

Example usage

uses: TUDOCK/action-composer-nexus-upload@v1
if: ${{ github.event_name == 'push' }}
with:
  repository: 'https://...'
  username: 'me'
  password: ${{ secrets.password }}

Files exclusion

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"
            ]
        }
    }

About

Simple PHP Script and Docker Image for uploading composer packages to a Nexus Respository.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 88.8%
  • Shell 7.5%
  • Dockerfile 3.7%