Skip to content

Commit

Permalink
build(release): sign tag
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Romero Montes <rromerom@redhat.com>
  • Loading branch information
ruromero committed Nov 15, 2023
1 parent e83f722 commit bed9d77
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 50 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/publish.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions perform_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ print_message() {
remove_snapshot() {
print_message "Removing snapshot from pom"
mvn -B versions:set -DremoveSnapshot -DgenerateBackupPoms=false
mvn clean verify -Prelease -Psigned
mvn clean deploy -Ppublish -Prelease
}

git_push() {
Expand All @@ -35,7 +35,7 @@ git_commit() {
git_tag() {
version=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
print_message "Creating tag v${version}"
git tag v${version}
git tag -s v${version}
git_push v${version}
}

Expand All @@ -56,7 +56,7 @@ perform_release() {
git_tag

next_version ${1:-}
mvn -B clean package
mvn -B clean package -Ppublish
git_commit "updated next development version"
}

Expand Down
33 changes: 13 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -564,26 +564,6 @@ limitations under the License.]]>
</build>

<profiles>
<profile>
<id>signed</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>publish</id>
<build>
Expand Down Expand Up @@ -632,6 +612,19 @@ limitations under the License.]]>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
Expand Down

0 comments on commit bed9d77

Please sign in to comment.