Skip to content

Commit 330c010

Browse files
committed
Only run gpg signing on release
1 parent eba0f65 commit 330c010

2 files changed

Lines changed: 30 additions & 16 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
- 6.9.1
6+
- 6.9.0
77
permissions:
88
contents: write
99
pull-requests: write
@@ -37,12 +37,12 @@ jobs:
3737
git push -u origin $BRANCH_NAME
3838
- run: mvn -q clean install -DskipTests -q -DnvdApiKey=${{ secrets.NVD_API_KEY }}
3939
- run: mvn -q -B release:prepare -DskipTests
40-
- run: mvn -B release:perform -DskipTests
40+
- run: mvn -B release:perform -DskipTests -DperformRelease=true
4141
- run: |
4242
curl -X POST "https://api.github.com/repos/digital-preservation/droid/pulls" \
4343
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4444
-H "Accept: application/vnd.github+json" \
45-
-d '{"title": "Version bump for ${{ github.event.inputs.to-deploy }}","head": "$BRANCH_NAME","base": "main"}'
45+
-d '{"title": "Version bump","head": "$BRANCH_NAME","base": "main"}'
4646
github-release:
4747
runs-on: ubuntu-latest
4848
steps:

droid-parent/pom.xml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -244,19 +244,6 @@
244244
</pluginManagement>
245245

246246
<plugins>
247-
<plugin>
248-
<groupId>org.apache.maven.plugins</groupId>
249-
<artifactId>maven-gpg-plugin</artifactId>
250-
<executions>
251-
<execution>
252-
<id>sign-artifacts</id>
253-
<phase>verify</phase>
254-
<goals>
255-
<goal>sign</goal>
256-
</goals>
257-
</execution>
258-
</executions>
259-
</plugin>
260247
<plugin>
261248
<groupId>org.sonatype.plugins</groupId>
262249
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -580,6 +567,33 @@ Copyright &copy; ${project.inceptionYear}-{currentYear} <a href="${project.organ
580567
</reporting>
581568

582569
<profiles>
570+
<profile>
571+
<id>release-sign-artifacts</id>
572+
<activation>
573+
<property>
574+
<name>performRelease</name>
575+
<value>true</value>
576+
</property>
577+
</activation>
578+
<build>
579+
<plugins>
580+
<plugin>
581+
<groupId>org.apache.maven.plugins</groupId>
582+
<artifactId>maven-gpg-plugin</artifactId>
583+
<executions>
584+
<execution>
585+
<id>sign-artifacts</id>
586+
<phase>verify</phase>
587+
<goals>
588+
<goal>sign</goal>
589+
</goals>
590+
</execution>
591+
</executions>
592+
</plugin>
593+
</plugins>
594+
</build>
595+
</profile>
596+
583597
<profile>
584598
<id>upload-jacoco-to-coveralls</id>
585599
<activation>

0 commit comments

Comments
 (0)