Skip to content

Commit d460dc8

Browse files
authored
Merge branch 'master' into snyk-upgrade-1be466e45a71e5aa7e9f374f6bc6c65b
2 parents 4aacd31 + 0a9e80e commit d460dc8

File tree

5 files changed

+64
-12
lines changed

5 files changed

+64
-12
lines changed

.circleci.settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<servers>
44
<server>
55
<id>ossrh</id>
6-
<username>${env.OSSRH_USERNAME}</username>
7-
<password>${env.OSSRH_PASSWORD}</password>
6+
<username>${env.OSSH_USERNAME}</username>
7+
<password>${env.OSSH_PASSWORD}</password>
88
</server>
99
<server>
1010
<id>gpg.passphrase</id>

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
# run tests!
3939
- run: mvn integration-test
4040
- run: mvn cobertura:cobertura
41-
- run: bash <(curl -s https://codecov.io/bash) -t ${CODECOV_TOKEN}
41+
- run: bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t ${CODECOV_TOKEN}
4242

43-
- run: mvn -s .circleci.settings.xml -DskipTests deploy
43+
- run: mvn -s .circleci.settings.xml -DskipTests -Dgpg.skip deploy
4444

4545
workflows:
4646
version: 2

.github/release-drafter-config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name-template: 'Version $NEXT_PATCH_VERSION🌈'
1+
name-template: 'Version $NEXT_PATCH_VERSION'
22
tag-template: 'v$NEXT_PATCH_VERSION'
33
categories:
4-
- title: '🚀Features'
4+
- title: 'Features'
55
labels:
66
- 'feature'
77
- 'enhancement'
@@ -10,9 +10,9 @@ categories:
1010
- 'fix'
1111
- 'bugfix'
1212
- 'bug'
13-
- title: '🧰Maintenance'
13+
- title: 'Maintenance'
1414
label: 'chore'
15-
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
15+
change-template: '- $TITLE (#$NUMBER)'
1616
exclude-labels:
1717
- 'skip-changelog'
1818
template: |
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: get version from tag
15+
id: get_version
16+
run: |
17+
realversion="${GITHUB_REF/refs\/tags\//}"
18+
realversion="${realversion//v/}"
19+
echo "::set-output name=VERSION::$realversion"
20+
21+
- name: Set up publishing to maven central
22+
uses: actions/setup-java@v2
23+
with:
24+
java-version: '8'
25+
distribution: 'adopt'
26+
server-id: ossrh
27+
server-username: MAVEN_USERNAME
28+
server-password: MAVEN_PASSWORD
29+
30+
- name: mvn versions
31+
run: mvn versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
32+
33+
- name: Install gpg key
34+
run: |
35+
cat <(echo -e "${{ secrets.OSSH_GPG_SECRET_KEY }}") | gpg --batch --import
36+
gpg --list-secret-keys --keyid-format LONG
37+
38+
- name: Publish
39+
run: |
40+
mvn --no-transfer-progress \
41+
--batch-mode \
42+
-Dgpg.passphrase='${{ secrets.OSSH_GPG_SECRET_KEY_PASSWORD }}' \
43+
-DskipTests deploy -P release
44+
env:
45+
MAVEN_USERNAME: ${{secrets.OSSH_USERNAME}}
46+
MAVEN_PASSWORD: ${{secrets.OSSH_TOKEN}}

pom.xml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.redislabs</groupId>
88
<artifactId>jrejson</artifactId>
99
<version>1.5.0-SNAPSHOT</version>
10-
10+
1111
<name>JReJSON</name>
1212
<description>Official client for ReJSON</description>
1313
<url>https://oss.redislabs.com/rejson</url>
@@ -45,9 +45,9 @@
4545
<maven.compiler.source>1.8</maven.compiler.source>
4646
<maven.compiler.target>1.8</maven.compiler.target>
4747
<maven.test.source>8</maven.test.source>
48-
<maven.test.target>8</maven.test.target>
48+
<maven.test.target>8</maven.test.target>
4949
<gson.version>2.8.7</gson.version>
50-
<jedis.version>3.6.0</jedis.version>
50+
<jedis.version>3.6.3</jedis.version>
5151
<commons.pool2.version>2.10.0</commons.pool2.version>
5252
</properties>
5353

@@ -159,7 +159,13 @@
159159
<plugin>
160160
<groupId>org.apache.maven.plugins</groupId>
161161
<artifactId>maven-gpg-plugin</artifactId>
162-
<version>1.5</version>
162+
<version>3.0.1</version>
163+
<configuration>
164+
<gpgArguments>
165+
<arg>--pinentry-mode</arg>
166+
<arg>loopback</arg>
167+
</gpgArguments>
168+
</configuration>
163169
<executions>
164170
<execution>
165171
<id>sign-artifacts</id>

0 commit comments

Comments
 (0)