none(ci): quiet logging of versionIncrementer #15
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 Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-main: | |
| strategy: | |
| matrix: | |
| include: | |
| - project_prefix: ktor-server | |
| image_name: ubuntu-latest | |
| - project_prefix: ktor-client | |
| image_name: macos-latest | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| name: Build Main - ${{ matrix.project_prefix }} | |
| runs-on: ${{ matrix.image_name }} | |
| if: ${{ !contains(github.event.head_commit.message, 'ci skip') }} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| # Required for axion-release to read git history | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: 'temurin' | |
| - name: Detect modified subprojects | |
| uses: ./.github/actions/detect-modified-projects | |
| id: detect-modified-subprojects | |
| with: | |
| project_prefixes: ${{ matrix.project_prefix }} | |
| required_projects: ${{ matrix.project_prefix == 'ktor-server' && 'ktor-server-kafka,ktor-server-rate-limiting' || 'ktor-client-circuit-breaker' }} | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Execute gradle tasks on ${{ steps.detect-modified-subprojects.outputs.modified_projects == '' && 'root' || steps.detect-modified-subprojects.outputs.modified_projects }} | |
| id: execute-gradle-tasks-on-projects | |
| uses: ./.github/actions/execute-gradle-tasks-on-projects | |
| with: | |
| projects: ${{ steps.detect-modified-subprojects.outputs.modified_projects }} | |
| tasks: clean --scan --stacktrace | |
| env: | |
| GPR_USER: ${{ vars.GPR_USER }} | |
| GPR_READ_TOKEN: ${{ secrets.GPR_READ_TOKEN }} | |
| GPR_WRITE_TOKEN: ${{ secrets.GPR_WRITE_TOKEN }} | |
| deploy-docs: | |
| needs: build-main | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v4 | |
| - name: Deploy docs | |
| uses: mhausenblas/mkdocs-deploy-gh-pages@1.26 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CONFIG_FILE: documentation/mkdocs/mkdocs.yml |