|
25 | 25 | # events, we also want to react onto `labeled` events for our extended |
26 | 26 | # build execution |
27 | 27 | pull_request: |
28 | | - types: [labeled, opened, synchronize, reopened] |
| 28 | + types: [ labeled, opened, synchronize, reopened ] |
29 | 29 |
|
30 | 30 | jobs: |
31 | 31 | build: |
32 | 32 |
|
33 | 33 | runs-on: ubuntu-latest |
34 | 34 |
|
35 | 35 | steps: |
36 | | - - uses: actions/checkout@v3 |
37 | | - - name: Set up JDK 11 |
38 | | - uses: actions/setup-java@v3 |
39 | | - with: |
40 | | - distribution: 'temurin' |
41 | | - java-version: 11 |
42 | | - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml |
43 | | - server-username: MAVEN_USERNAME # env variable for username in deploy |
44 | | - server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy |
45 | | - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import |
46 | | - gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase |
47 | | - |
48 | | - - name: Cache local Maven repository |
49 | | - uses: actions/cache@v3 |
50 | | - with: |
51 | | - path: ~/.m2/repository |
52 | | - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
53 | | - restore-keys: | |
54 | | - ${{ runner.os }}-maven |
55 | | - |
56 | | - - name: Build with Maven |
57 | | - run: mvn -B verify -P run-its |
58 | | - env: |
59 | | - MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} |
60 | | - MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} |
61 | | - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |
| 36 | + - uses: actions/checkout@v3 |
| 37 | + - name: Set up JDK 11 |
| 38 | + uses: actions/setup-java@v3 |
| 39 | + with: |
| 40 | + distribution: 'temurin' |
| 41 | + java-version: 11 |
| 42 | + server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml |
| 43 | + server-username: MAVEN_USERNAME # env variable for username in deploy |
| 44 | + server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy |
| 45 | + gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import |
| 46 | + gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase |
| 47 | + |
| 48 | + - name: Cache local Maven repository |
| 49 | + uses: actions/cache@v3 |
| 50 | + with: |
| 51 | + path: ~/.m2/repository |
| 52 | + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} |
| 53 | + restore-keys: | |
| 54 | + ${{ runner.os }}-maven |
| 55 | +
|
| 56 | + - name: Build with Maven |
| 57 | + run: mvn -B verify -P run-its |
| 58 | + env: |
| 59 | + MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} |
| 60 | + MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} |
| 61 | + MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |
0 commit comments