Warn on unused fragments (#6601) #1676
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: push | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths-ignore: | |
| - 'docs/**' | |
| - '*.md' | |
| env: | |
| DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
| jobs: | |
| deploy: | |
| runs-on: macos-14 | |
| if: github.repository == 'apollographql/apollo-kotlin' | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
| - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda #v3.4.2 | |
| with: | |
| gradle-home-cache-cleanup: true | |
| - name: Build with Gradle | |
| run: | | |
| ./gradlew :apollo-kdoc:dokkaGeneratePublicationHtml | |
| ./gradlew nmcpPublishAggregationToCentralPortalSnapshots | |
| env: | |
| LIBRARIAN_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
| LIBRARIAN_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
| - name: Collect Diagnostics | |
| if: always() | |
| run: ./scripts/collect-diagnostics.main.kts | |
| - uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 #v4.3.3 | |
| if: always() | |
| with: | |
| name: push.zip | |
| path: diagnostics.zip | |
| - name: Deploy Kdoc to github pages | |
| uses: JamesIves/github-pages-deploy-action@5c6e9e9f3672ce8fd37b9856193d2a537941e66c #v4.6.1 | |
| with: | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: libraries/apollo-kdoc/build/dokka/html # The folder the action should deploy. |