Skip to content

Commit 265a42f

Browse files
committed
Merge branch 'DBTOOLS-1665_add_github_action' into 'master'
DBTOOLS-1665 added github action See merge request codekeeper/pgcodekeeper-core!39
2 parents 68ae689 + 1a79b9c commit 265a42f

File tree

2 files changed

+43
-3
lines changed

2 files changed

+43
-3
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release Workflow
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK 17
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: '17'
21+
22+
- name: Import GPG key
23+
run: |
24+
echo "${{ secrets.GPG_PRIVATE_KEY }}" > private.key
25+
gpg --batch --pinentry-mode loopback --import private.key
26+
rm -f private.key
27+
28+
- name: Remove default Maven settings
29+
run: rm -f ~/.m2/settings.xml
30+
31+
- name: Setup Maven settings
32+
uses: 1arp/create-a-file-action@0.4.5
33+
with:
34+
path: /home/runnner/.m2
35+
isAbsolutePath: true
36+
file: settings.xml
37+
content: ${{ secrets.MAVEN_SETTINGS_XML }}
38+
39+
- name: Build and deploy
40+
run: mvn -B clean deploy -DskipTests -Prelease

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<modelVersion>4.0.0</modelVersion>
88
<groupId>org.pgcodekeeper</groupId>
99
<artifactId>pgcodekeeper-core</artifactId>
10-
<version>11.0.0</version>
10+
<version>11.0.0-rc.1</version>
1111
<packaging>jar</packaging>
1212

1313
<name>pgcodekeeper-core</name>
@@ -177,11 +177,11 @@
177177
<plugin>
178178
<groupId>org.sonatype.central</groupId>
179179
<artifactId>central-publishing-maven-plugin</artifactId>
180-
<version>0.4.0</version>
180+
<version>0.8.0</version>
181181
<extensions>true</extensions>
182182
<configuration>
183183
<publishingServerId>central</publishingServerId>
184-
<tokenAuth>true</tokenAuth>
184+
<autoPublish>true</autoPublish>
185185
</configuration>
186186
</plugin>
187187
</plugins>

0 commit comments

Comments
 (0)