Skip to content

Commit fada01c

Browse files
committed
Update publish-packages.yml
1 parent 8c633b1 commit fada01c

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

.github/workflows/publish-packages.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,23 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
deploy:
7+
build:
8+
89
runs-on: ubuntu-latest
9-
steps:
10-
- uses: actions/checkout@v2
1110

12-
- name: Set up Java
13-
uses: actions/setup-java@v2
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK 21
14+
uses: actions/setup-java@v4
1415
with:
15-
java-version: '17'
16+
java-version: '21'
1617
distribution: 'temurin'
18+
cache: maven
1719
server-id: central
1820
server-username: MAVEN_USERNAME
1921
server-password: MAVEN_PASSWORD
20-
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
21-
gpg-passphrase: GPG_PASSPHRASE
22-
23-
- name: Deploy to Maven Central
24-
run: mvn --batch-mode deploy --file PgBulkInsert/pom.xml -DskipTests
22+
- name: Build and publish with Maven
23+
run: mvn --batch-mode deploy --file pom.xml
2524
env:
26-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2725
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
2826
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}

0 commit comments

Comments
 (0)