Skip to content

Commit

Permalink
Add GitHub Packages pipeline (#215)
Browse files Browse the repository at this point in the history
* Set version

* Fix pom

* Set version
  • Loading branch information
mlieshoff authored Feb 14, 2025
1 parent be55563 commit 498d17f
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 33 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,28 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
- name: Set up JDK for packagecloud deployment
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
server-id: packagecloud
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: mvn -B deploy
- name: Publish package to packagecloud
run: mvn -B -P packagecloud deploy
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- name: Set up JDK for GitHub Packages deployment
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 21
- name: Publish package to GitHub Packages
run: mvn -B -P github-packages deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get tag name
id: tagname
run: |
Expand Down
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## [Unreleased]

## [4.0.14] - 2025-02-14

### Added

- GitHub Packages pipeline

## [4.0.13] - 2025-02-14

### Changed
Expand Down Expand Up @@ -290,7 +296,8 @@

- Create a Release job (#152)

[unreleased]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.13...HEAD
[unreleased]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.14...HEAD
[4.0.14]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.13...4.0.14
[4.0.13]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.12...4.0.13
[4.0.12]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.11...4.0.12
[4.0.11]: https://github.com/mlieshoff/jcrapi2/compare/v4.0.10...4.0.11
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[![](https://img.shields.io/badge/java-packagecloud.io-844fec.svg)](https://packagecloud.io/)
[![Nightlies](https://github.com/mlieshoff/jcrapi2/actions/workflows/nightlies.yml/badge.svg)](https://github.com/mlieshoff/jcrapi2/actions/workflows/nightlies.yml)

# jcrapi2 4.0.13
# jcrapi2 4.0.14
A Java Wrapper For Official Supercell Clash Royal Api

## Why we don't use the Swagger scheme?
Expand Down Expand Up @@ -484,15 +484,15 @@ All requests are returning *java.concurrent.Future*. The execution will be async

to Gradle:
```groovy
implementation group: 'jcrapi2', name: 'jcrapi2', version: '4.0.13'
implementation group: 'jcrapi2', name: 'jcrapi2', version: '4.0.14'
```

to Maven:
```xml
<dependency>
<groupId>jcrapi2</groupId>
<artifactId>jcrapi2</artifactId>
<version>4.0.13</version>
<version>4.0.14</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.0.13
v4.0.14
63 changes: 38 additions & 25 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>jcrapi2</artifactId>
<packaging>jar</packaging>
<version>4.0.13</version>
<version>4.0.14</version>
<groupId>jcrapi2</groupId>
<url>https://maven.apache.org</url>
<inceptionYear>2018</inceptionYear>
Expand Down Expand Up @@ -217,24 +217,6 @@
</extension>
</extensions>
</build>
<profiles>
<profile>
<id>endToEnd</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.maven.surfire}</version>
<configuration>
<includes>
<include>**/EndToEnd.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<!-- compile -->
<dependency>
Expand Down Expand Up @@ -328,12 +310,6 @@
<scope>test</scope>
</dependency>
</dependencies>
<distributionManagement>
<repository>
<id>packagecloud</id>
<url>packagecloud+https://packagecloud.io/mlieshoff/jcrapi2</url>
</repository>
</distributionManagement>
<repositories>
<repository>
<id>mlieshoff-jcrapi2</id>
Expand Down Expand Up @@ -366,4 +342,41 @@
</snapshots>
</repository>
</repositories>
<profiles>
<profile>
<id>endToEnd</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${version.maven.surfire}</version>
<configuration>
<includes>
<include>**/EndToEnd.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>packagecloud</id>
<distributionManagement>
<repository>
<id>packagecloud</id>
<url>packagecloud+https://packagecloud.io/mlieshoff/jcrapi2</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>github-packages</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/mlieshoff/jcrapi2</url>
</repository>
</distributionManagement>
</profile>
</profiles>
</project>

0 comments on commit 498d17f

Please sign in to comment.