jutzig / github-release-plugin

uses the github release api to upload files
69 stars 24 forks source link

Allow read description from file #32

Open vromero opened 6 years ago

vromero commented 6 years ago

It would be really nice if the description could be loaded also from disk in order to be able to combine github-release-plugin with git-changelog-maven-plugin.

I've been able to workaround with:

<plugin>
    <groupId>org.codehaus.gmaven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <version>1.5</version>
    <executions>
        <execution>
             <phase>generate-resources</phase>
            <goals>
                <goal>execute</goal>
            </goals>
            <configuration>
                <properties>
                    <input_file>${session.executionRootDirectory}/CHANGELOG.md</input_file>
                </properties>
                <source>
                    def file = new File(project.properties.input_file)
                    project.properties.release_description = file.getText()
                </source>
            </configuration>
        </execution>
    </executions>
</plugin>

But it can't be called elegant.

Sami32 commented 6 years ago

I second that, being able to use directly the project changelog file for the description should the must. -F "CHANGELOG.md"