Skip to content

Commit 6608e37

Browse files
authored
feat: fix CI semantic-release workflow
1 parent 6b1a1b4 commit 6608e37

3 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ jobs:
4848
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
4949
run: |
5050
npm install -g @conveyal/maven-semantic-release semantic-release
51-
npx semantic-release
51+
semantic-release --prepare @conveyal/maven-semantic-release --publish @semantic-release/github,@conveyal/maven-semantic-release --verify-conditions @semantic-release/github,@conveyal/maven-semantic-release --verify-release @conveyal/maven-semantic-release
5252
env:
53-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
5455
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5556
OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
5657
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}

.releaserc.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,19 @@
119119

120120
<build>
121121
<plugins>
122+
<plugin>
123+
<!-- Automatically close and deploy from OSSRH -->
124+
<groupId>org.sonatype.central</groupId>
125+
<artifactId>central-publishing-maven-plugin</artifactId>
126+
<version>0.5.0</version>
127+
<extensions>true</extensions>
128+
<configuration>
129+
<publishingServerId>ossrh</publishingServerId>
130+
<tokenAuth>true</tokenAuth>
131+
<!-- Release versions will be synced to Maven Central automatically. -->
132+
<autoPublish>true</autoPublish>
133+
</configuration>
134+
</plugin>
122135
<plugin>
123136
<groupId>org.apache.maven.plugins</groupId>
124137
<artifactId>maven-compiler-plugin</artifactId>

0 commit comments

Comments
 (0)