Skip to content

Commit 65c76b9

Browse files
* #178: Prepared the project for an automated Maven Central Release (#180)
1 parent ee85a20 commit 65c76b9

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Maven Central Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Maven Central Repository
12+
uses: actions/setup-java@v1
13+
with:
14+
java-version: 11
15+
server-id: ossrh
16+
server-username: MAVEN_USERNAME
17+
server-password: MAVEN_PASSWORD
18+
- name: Import GPG Key
19+
run:
20+
gpg --import --batch <(echo "${{ secrets.OSSRH_GPG_SECRET_KEY }}")
21+
- name: Publish to Central Repository
22+
env:
23+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
24+
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
25+
run: mvn clean -Dgpg.skip=false -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy

doc/changes/changes_12.1.0.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Virtual Schema Common Java 12.1.0, released 2020-10-??
1+
# Virtual Schema Common Java 12.1.0, released 2020-10-23
22

33
Code name: New capabilities and updates in the API
44

@@ -14,6 +14,7 @@ Code name: New capabilities and updates in the API
1414
* #168: Removed unused class SqlUtils.
1515
* #173: Improved LISTAGG function class.
1616
* #175: Improved EXTRACT function class.
17+
* #178: Prepared the project for an automated Maven Central Release
1718

1819
## Documentation
1920

pom.xml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@
189189
<goals>
190190
<goal>sign</goal>
191191
</goals>
192+
<configuration>
193+
<!-- Prevent `gpg` from using pinentry programs -->
194+
<gpgArguments>
195+
<arg>--pinentry-mode</arg>
196+
<arg>loopback</arg>
197+
</gpgArguments>
198+
</configuration>
192199
</execution>
193200
</executions>
194201
</plugin>
@@ -239,6 +246,32 @@
239246
</execution>
240247
</executions>
241248
</plugin>
249+
<plugin>
250+
<groupId>org.apache.maven.plugins</groupId>
251+
<artifactId>maven-deploy-plugin</artifactId>
252+
<configuration>
253+
<skip>true</skip>
254+
</configuration>
255+
</plugin>
256+
<plugin>
257+
<groupId>org.sonatype.plugins</groupId>
258+
<artifactId>nexus-staging-maven-plugin</artifactId>
259+
<version>1.6.8</version>
260+
<configuration>
261+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
262+
<serverId>ossrh</serverId>
263+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
264+
</configuration>
265+
<executions>
266+
<execution>
267+
<id>default-deploy</id>
268+
<phase>deploy</phase>
269+
<goals>
270+
<goal>deploy</goal>
271+
</goals>
272+
</execution>
273+
</executions>
274+
</plugin>
242275
</plugins>
243276
</build>
244277
</project>

0 commit comments

Comments
 (0)