Skip to content

Commit

Permalink
Modifying staging workflow to remove snapshot suffix from version. Up…
Browse files Browse the repository at this point in the history
…dated version to 1.0.1 and changed scope of javax.visrec:visrec-api to provided.
  • Loading branch information
kevto committed Apr 22, 2020
1 parent 7e2a6ab commit a57364d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ jobs:
PRIVATE_KEY: ${{ secrets.GPG_SECRET_KEY }}

- name: Publish to repository
run: ./mvnw deploy -s settings.xml -Dversion.suffix=
run: |
sed -i "s/-SNAPSHOT//g" pom.xml
./mvnw deploy -s settings.xml
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
25 changes: 13 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>javax.visrec</groupId>
<artifactId>visrec-ri</artifactId>
<version>1.0.0${version.suffix}</version>
<version>1.0.1-SNAPSHOT</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -15,6 +15,17 @@
</properties>

<dependencies>
<dependency>
<groupId>javax.visrec</groupId>
<artifactId>visrec-api</artifactId>
<version>1.0.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.deepnetts</groupId>
<artifactId>deepnetts-core</artifactId>
<version>1.11</version>
</dependency>

<!-- Test dependencies -->
<dependency>
Expand All @@ -35,16 +46,6 @@
<version>5.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.visrec</groupId>
<artifactId>visrec-api</artifactId>
<version>1.0.1</version>
</dependency>
<dependency>
<groupId>com.deepnetts</groupId>
<artifactId>deepnetts-core</artifactId>
<version>1.11</version>
</dependency>
</dependencies>

<repositories>
Expand Down Expand Up @@ -113,7 +114,7 @@
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
Expand Down

0 comments on commit a57364d

Please sign in to comment.