10000 Deploy to Maven central and analyze with Sonar · utPLSQL/utPLSQL-java-api@de1932a · GitHub
[go: up one dir, main page]

Skip to content

Commit de1932a

Browse files
committed
Deploy to Maven central and analyze with Sonar
1 parent ff8ce42 commit de1932a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ jobs:
4646
with:
4747
java-version: '11'
4848
distribution: 'adopt'
49+
server-id: ossrh
50+
server-username: MAVEN_USERNAME
51+
server-password: MAVEN_PASSWORD
52+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
53+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
4954

5055
- name: Cache local Maven repository
5156
uses: actions/cache@v2
@@ -56,7 +61,17 @@ jobs:
5661
${{ runner.os }}-maven-
5762
5863
- name: Maven unit and integration tests
59-
run: mvn clean verify
64+
run: mvn clean verify sonar:sonar -Pcoverage -Dsonar.projectKey=org.utplsql:utplsql-java-api
65+
env:
66+
GITHUB_TOKEN: ${{ secrets.API_TOKEN_GITHUB }}
67+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
68+
69+
- name: Maven deploy snapshot
70+
run: mvn deploy -DskipTests
71+
env:
72+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
73+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
74+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
6075

6176
- name: Publish unit test results
6277
uses: EnricoMi/publish-unit-test-result-action@v1.24

0 commit comments

Comments
 (0)
0