Skip to content

Commit

Permalink
ci: Release Fury Java Snapshot (#1264)
Browse files Browse the repository at this point in the history
Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Dec 27, 2023
1 parent 890f431 commit a8f081b
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 107 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,31 @@
# specific language governing permissions and limitations
# under the License.

name: Publish Fury Java 📦
name: Publish Fury Java Snapshot

on:
push:
branches:
- main
- release-java-snapshot

jobs:
publish-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish java packages
run: cd java && mvn --batch-mode -q deploy -Dgpg.skip -DskipTests -Prelease
architecture: x64
cache: maven
server-id: apache.snapshots.https
server-username: NEXUS_USERNAME
server-password: NEXUS_PASSWORD
- name: Publish Fury Java Snapshot
run: cd java && mvn deploy -Dgpg.skip -DskipTests -Papache-release
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_ID }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_KEY }}
NEXUS_USERNAME: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PW }}
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

name: Publish Fury 📦
name: Publish Fury

on:
push:
Expand All @@ -24,7 +24,7 @@ on:

jobs:
release-python:
name: Publish Python 📦 to PyPI
name: Publish Fury Python to PyPI
runs-on: ubuntu-20.04
environment:
name: pypi
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
echo "Build pyfury"
python setup.py bdist_wheel --dist-dir=../dist
../ci/deploy.sh rename_linux_wheels $PWD/../dist
- name: Publish wheel 📦 to PyPI
- name: Publish wheel to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down
14 changes: 0 additions & 14 deletions java/fury-benchmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,6 @@
<fury.java.rootdir>${basedir}/..</fury.java.rootdir>
</properties>

<repositories>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
Expand Down Expand Up @@ -265,5 +252,4 @@
</plugin>
</plugins>
</build>

</project>
17 changes: 0 additions & 17 deletions java/fury-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,6 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>fury-core</artifactId>
<packaging>jar</packaging>

<scm>
<url>https://github.com/apache/incubator-fury</url>
<connection>[email protected]:apache/incubator-fury.git</connection>
<developerConnection>scm:git:ssh://github.com:apache/incubator-fury.git</developerConnection>
</scm>
<developers>
<developer>
<organizationUrl>https://fury.apache.org</organizationUrl>
</developer>
<developer>
<name>chaokunyang</name>
<email>[email protected]</email>
<url>https://github.com/chaokunyang</url>
</developer>
</developers>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
17 changes: 0 additions & 17 deletions java/fury-format/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,6 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>fury-format</artifactId>
<packaging>jar</packaging>

<scm>
<url>https://github.com/apache/incubator-fury</url>
<connection>[email protected]:apache/incubator-fury.git</connection>
<developerConnection>scm:git:ssh://github.com:apache/incubator-fury.git</developerConnection>
</scm>
<developers>
<developer>
<organizationUrl>https://fury.apache.org</organizationUrl>
</developer>
<developer>
<name>chaokunyang</name>
<email>[email protected]</email>
<url>https://github.com/chaokunyang</url>
</developer>
</developers>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
1 change: 0 additions & 1 deletion java/fury-test-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>fury-test-core</artifactId>
<packaging>jar</packaging>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
54 changes: 8 additions & 46 deletions java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,27 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>29</version>
</parent>

<groupId>org.apache.fury</groupId>
<artifactId>fury-parent</artifactId>
<packaging>pom</packaging>
<version>0.5.0-SNAPSHOT</version>
<name>Fury Project Parent POM</name>
<description>A blazing fast multi-language serialization framework powered by jit and zero-copy.</description>
<url>https://github.com/apache/incubator-fury</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<scm>
<url>https://github.com/apache/incubator-fury</url>
<connection>[email protected]:apache/incubator-fury.git</connection>
Expand All @@ -46,22 +54,7 @@
<developer>
<organizationUrl>https://fury.apache.org</organizationUrl>
</developer>
<developer>
<name>chaokunyang</name>
<email>[email protected]</email>
<url>https://github.com/chaokunyang</url>
</developer>
</developers>
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<modules>
<module>fury-format</module>
Expand Down Expand Up @@ -261,35 +254,4 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
<value>true</value>
</property>
</activation>
<properties>
<output.directory>${basedir}</output.directory>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit a8f081b

Please sign in to comment.