mirror of
https://github.com/square/okhttp.git
synced 2026-10-24 07:59:29 +03:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, labeled, unlabeled, synchronize]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
|
|
|
|
jobs:
|
|
test_docs:
|
|
permissions:
|
|
checks: write # for actions/upload-artifact
|
|
runs-on: ubuntu-latest
|
|
if: github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'documentation')
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Configure JDK
|
|
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: 21
|
|
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- run: pip install mkdocs-material mkdocs-redirects
|
|
|
|
- name: Generate Docs
|
|
run: ./test_docs.sh
|
|
|
|
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: docs
|
|
path: site/
|