mirror of
https://github.com/square/okhttp.git
synced 2026-01-12 10:23:16 +03:00
46 lines
987 B
YAML
46 lines
987 B
YAML
name: docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
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/master' || contains(github.event.pull_request.labels.*.name, 'documentation')
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Configure JDK
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 17
|
|
|
|
- uses: actions/setup-python@v6
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- run: pip install mkdocs-material mkdocs-redirects
|
|
|
|
- name: Generate Docs
|
|
run: ./test_docs.sh
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: docs
|
|
path: site/
|