GithubHelp home page GithubHelp logo

cy6ergn0m / github-release-plugin Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 2.0 46 KB

Maven plugin for uploading artifacts to the GitHub releases

License: Apache License 2.0

Groovy 0.48% Kotlin 99.52%

github-release-plugin's Introduction

github-release-plugin

Maven plugin to deploy artifacts to the GitHub releases.

Setup

  • Add git URL (SSH or https url)
    <scm>
        <connection>scm:git:[email protected]:owner/repository.git</connection>
        <tag>HEAD</tag>
    </scm>
  • Add plugin
    <pluginRepositories>
        <pluginRepository>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
            <id>bintray-cy6ergn0m-maven</id>
            <name>bintray-plugins</name>
            <url>http://dl.bintray.com/cy6ergn0m/maven</url>
        </pluginRepository>
    </pluginRepositories>

    <build>
        <plugins>
            <plugin>
                <groupId>cy.github</groupId>
                <artifactId>github-release-plugin</artifactId>
                <version>${plugin.version}</version>

                <configuration>
                    <tagName>${project.artifactId}-${project.version}</tagName>
                    <preRelease>true</preRelease>
                </configuration>

                <executions>
                    <execution>
                        <goals>
                            <goal>gh-upload</goal>
                        </goals>
                        <phase>deploy</phase>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
    <server>
        <id>github</id>
        <username>username</username>
        <password>(your token here)</password>
    </server>

Note: you can use password encryption as well, see Maven Password Encryption Guide for details.

Deploy releases

To deploy to github use mvn deploy or use Maven Release Plugin

You also can launch plugin directly mvn package github-release-plugin:gh-upload

Plugin configuration options

Option System property Default value Description
skip maven.deploy.skip false Skip deployment, notice that system property will skip all deployments and will affect all plugins
serverId github server id in settings.xml
endpointURL https://api.github.com URL of github API, also could be specified via settings.xml server entry
owner github repository owner, overrides scm tag
repository github repository id
tagName ${project.version} git tag to be used to create release from
releaseTitle ${project.version} title of release
preRelease false If true then release will be marked with red prerelese badge

github-release-plugin's People

Contributors

cy6ergn0m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

contargo anwarchk

github-release-plugin's Issues

Skip deploy but release to github

Hi,
i would like if you could manage to allow -Darguments="-Dmaven.deploy.skip=true" to be given as an argument to maven, but still trigger the github release upload.

As is if -Darguments="-Dmaven.deploy.skip=true" is given to maven, the Github release is skipped.

Thanks in advance. (And thanks for the plugin ๐Ÿ˜„)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.