Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Maven Package upon a push
on:
push:
branches:
- '!release-branch'
- release-1*
- master
- 1.*
- develop
Expand Down Expand Up @@ -69,6 +71,7 @@ jobs:


publish_to_nexus:
if: "!contains(github.ref, 'master')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -112,7 +115,7 @@ jobs:

- name: Publish the maven package
run: |
cd biometrics-util && mvn deploy -DskipTests -DaltDeploymentRepository=ossrh::default::${{ secrets.OSSRH_SNAPSHOT_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
cd biometrics-util && mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_TTY: $(tty)
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/release_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,19 @@ jobs:
cd .github/workflows
sed -i 's/OSSRH_SNAPSHOT_URL/RELEASE_URL/g' push_trigger.yml

# - name: Updating libs-snapshot-local to libs-release local for artifactory URL's.
# run: find . -type f -name "*Dockerfile" -print0 | xargs -0 sed -i "s/libs-snapshot-local/libs-release-local/g"

- name: removing -DskipTests
run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-DskipTests"//g"

# - name: removing --Dgpg.skip
# run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-Dgpg.skip"//g"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.ACTION_PAT }}
commit-message: Updated Pom versions for release changes
title: Release changes
body: Automated PR for ${{ github.event.inputs.releaseTags }} release.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Maven Package upon a push](https://github.com/mosip/bio-utils/actions/workflows/push_trigger.yml/badge.svg?branch=release-1.2.0)](https://github.com/mosip/bio-utils/actions/workflows/push_trigger.yml)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?branch=release-1.2.0&project=mosip_biometrics-util&id=mosip_biometrics-util&metric=alert_status)](https://sonarcloud.io/dashboard?id=mosip_biometrics-util)
# Bio Utils

## Overview
Expand Down
4 changes: 2 additions & 2 deletions biometrics-util/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>io.mosip.biometric.util</groupId>
<artifactId>biometrics-util</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.2.0</version>
<name>biometrics-util</name>
<url>http://maven.apache.org</url>
<description>This utility is used to convert ISO to Image and Image to ISO</description>
Expand All @@ -19,7 +19,7 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>2.0.2.RELEASE</version>
<version>2.5.12</version>
<scope>compile</scope>
</dependency>

Expand Down
4 changes: 2 additions & 2 deletions test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<groupId>io.mosip.bio.utils</groupId>
<artifactId>bioutils</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<version>1.2.0</version>
<name>bioutils</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>io.mosip.biometric.util</groupId>
<artifactId>biometrics-util</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.2.0</version>
</dependency>

<dependency>
Expand Down