File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 workflow_dispatch :
55
66jobs :
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 }}
You can’t perform that action at this time.
0 commit comments