fix(CI): removed code coverage doc #3
Workflow file for this run
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 & Release | |
| on: | |
| push: | |
| branches: ['**'] | |
| tags: ['**'] | |
| pull_request: | |
| branches: ['**'] | |
| workflow_dispatch: | |
| # Allow workflow to be triggered manually. | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-test: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Set Maven version | |
| run: build/setMavenVersion.sh | |
| - name: Build and test | |
| run: mvn verify -fae -DskipITs --settings build/.travis.settings.xml | |
| semantic-release: | |
| name: Semantic Release | |
| if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
| needs: build-test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.8' | |
| - name: Install Publishing Tools | |
| run: | | |
| pip install bump2version | |
| npm install @semantic-release/changelog | |
| npm install @semantic-release/exec | |
| npm install @semantic-release/git | |
| npm install @semantic-release/github | |
| - name: Run semantic-release | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npx semantic-release | |
| publish-javadoc: | |
| name: Publish Javadoc | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build-test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Set Maven version | |
| run: build/setMavenVersion.sh | |
| - name: Generate Javadoc | |
| run: mvn clean javadoc:aggregate --settings build/.travis.settings.xml | |
| - name: Publish Javadoc to gh-pages | |
| run: build/publishJavadoc.sh | |
| publish-maven-central: | |
| name: Publish to Maven Central | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build-test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: 'maven' | |
| - name: Setup signing | |
| env: | |
| SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
| SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
| run: build/setupSigning.sh | |
| - name: Set Maven version | |
| run: build/setMavenVersion.sh | |
| - name: Deploy to Maven Central | |
| env: | |
| OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
| OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
| run: mvn deploy --settings build/.travis.settings.xml -DskipTests -P central | |