Merge pull request #107 from xenit-eu/ACC-2351 #557
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| name: "build" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| - name: Build with Gradle | |
| run: ./gradlew build | |
| - name: Publish | |
| if: ${{ github.ref == 'refs/heads/main' || startswith(github.ref, 'refs/tags/') }} | |
| env: | |
| SIGNING_PRIVATE_KEY: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }} | |
| SIGNING_PASSWORD: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }} | |
| ORG_GRADLE_PROJECT_mavenCentralPublishUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPublishPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| run: ./gradlew publish | |
| - name: Upload reports | |
| if: success() || failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: reports-build | |
| path: '**/build/reports' |