Skip to content

Commit 1d16416

Browse files
Merge pull request #18 from mike-d-davydov/fix/deployment-and-release-notes
fix: improve deployment config and release notes generation
2 parents 609f97f + 923595a commit 1d16416

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,19 @@ jobs:
5656
echo "## JPWise v${{ steps.extract_version.outputs.VERSION }}" >> $GITHUB_OUTPUT
5757
echo "" >> $GITHUB_OUTPUT
5858
echo "### Changes" >> $GITHUB_OUTPUT
59-
git log --pretty=format:"- %s" $(git describe --tags --abbrev=0 HEAD^)..HEAD >> $GITHUB_OUTPUT
59+
# Get all tags and find the previous one
60+
PREV_TAG=$(git tag --sort=-version:refname | grep -v "^v${{ steps.extract_version.outputs.VERSION }}$" | head -n 1 || echo "")
61+
if [ -n "$PREV_TAG" ]; then
62+
echo "Changes since $PREV_TAG:" >> $GITHUB_OUTPUT
63+
git log --pretty=format:"- %s" $PREV_TAG..HEAD >> $GITHUB_OUTPUT
64+
else
65+
echo "- Initial release of JPWise v${{ steps.extract_version.outputs.VERSION }}" >> $GITHUB_OUTPUT
66+
echo "- Java Pairwise Testing Framework with support for complex parameter relationships" >> $GITHUB_OUTPUT
67+
echo "- Comprehensive API with fluent builder pattern and direct generation methods" >> $GITHUB_OUTPUT
68+
echo "- TestNG DataProvider integration for seamless test automation" >> $GITHUB_OUTPUT
69+
echo "- Multiple partition types: SimpleValue, GenericPartition, CyclingPartition" >> $GITHUB_OUTPUT
70+
echo "- Modern Java 11+ compatibility with enhanced documentation" >> $GITHUB_OUTPUT
71+
fi
6072
echo "" >> $GITHUB_OUTPUT
6173
echo "EOF" >> $GITHUB_OUTPUT
6274

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,16 @@
307307
<artifactId>versions-maven-plugin</artifactId>
308308
<version>2.16.2</version>
309309
</plugin>
310+
311+
<!-- Deploy plugin for GitHub Packages -->
312+
<plugin>
313+
<groupId>org.apache.maven.plugins</groupId>
314+
<artifactId>maven-deploy-plugin</artifactId>
315+
<version>3.1.2</version>
316+
<configuration>
317+
<deployAtEnd>true</deployAtEnd>
318+
</configuration>
319+
</plugin>
310320
</plugins>
311321
</build>
312322

@@ -317,6 +327,11 @@
317327
<name>GitHub Packages</name>
318328
<url>https://maven.pkg.github.com/mikeddavydov/jpwise</url>
319329
</repository>
330+
<snapshotRepository>
331+
<id>github</id>
332+
<name>GitHub Packages</name>
333+
<url>https://maven.pkg.github.com/mikeddavydov/jpwise</url>
334+
</snapshotRepository>
320335
</distributionManagement>
321336

322337
<!-- SCM information -->

src/main/java/io/github/mikeddavydov/core/TestParameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
* Arrays.asList(SimpleValue.of("Chrome"), SimpleValue.of("Firefox")));
4242
*
4343
* // Parameter with compatibility rules using direct method calls
44-
* List<CompatibilityPredicate> rules = Arrays.asList((ep1, ep2) -> {
44+
* List&lt;CompatibilityPredicate&gt; rules = Arrays.asList((ep1, ep2) -&gt; {
4545
* // Safari only works with macOS
4646
* if (ep1.getName().equals("Safari")
4747
* &amp;&amp; ep2.getParentParameter().getName().equals("operatingSystem")) {

0 commit comments

Comments
 (0)