Skip to content

ci/bazel: Fix bazelisk cache (#29666) #68

ci/bazel: Fix bazelisk cache (#29666)

ci/bazel: Fix bazelisk cache (#29666) #68

Workflow file for this run

name: mobile_docs
permissions:
contents: read
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
env:
if: ${{ github.repository == 'envoyproxy/envoy' }}
uses: ./.github/workflows/_env.yml
permissions:
contents: read
statuses: write
docs:
if: ${{ github.repository == 'envoyproxy/envoy' }}
needs: env
permissions:
contents: read
packages: read
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Add safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Generate docs
run: ./ci/run_envoy_docker.sh 'cd mobile && docs/build.sh'
- name: Set up deploy key
if: github.ref == 'refs/heads/main'
uses: shimataro/[email protected]
with:
key: ${{ secrets.ENVOY_MOBILE_WEBSITE_DEPLOY_KEY }}
known_hosts: unnecessary
- name: Publish docs
if: github.ref == 'refs/heads/main'
run: ./ci/run_envoy_docker.sh 'cd mobile && docs/publish.sh'
- uses: actions/upload-artifact@v3
with:
name: docs
path: generated/docs