Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Marezki committed Dec 17, 2023
1 parent ccbecd3 commit 8efe753
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,17 @@ on:
- patch
- minor
- major
secrets:
GPG_PRIVATE_KEY:
required: true

env:
CARGO_TERM_COLOR: always

jobs:
release-all:
release:
runs-on: ubuntu-latest

steps:
- name: Test
run: docker ps
8 changes: 5 additions & 3 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ jobs:
key: ${{ runner.os }}-cargo
restore-keys: ${{ runner.os }}-cargo
- name: Install workspaces
run : cargo install cargo-workspaces
run: cargo install cargo-workspaces
- name: Login
run: cargo login ${{secrets.CRATES_IO_TOKEN}}
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
- name: Bump version
run: cargo workspaces version -y --no-individual-tags ${{ github.event.inputs.version_level }}
- name: Publish
run: cargo workspaces publish -y --no-individual-tags ${{ github.event.inputs.version_level }}
run: cargo publish -p polymath-rs
81 changes: 81 additions & 0 deletions polymath-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,20 @@
<version>0.1.0-SNAPSHOT</version>
<description>polymath java</description>

<licenses>
<license>
<name>MIT</name>
<url>https://github.com/reenigneEsrever92/polymath-rs/blob/main/LICENSE</url>
</license>
</licenses>

<developers>
<developer>
<id>reenigne_esrever</id>
<name>Felix Marezki</name>
</developer>
</developers>

<dependencyManagement>
<dependencies>
<dependency>
Expand Down Expand Up @@ -54,6 +68,73 @@
<target>11</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>ci-cd</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>
</project>

0 comments on commit 8efe753

Please sign in to comment.