forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 895 Bytes
/
docs.yml
File metadata and controls
33 lines (31 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: mobile_docs
on:
push:
branches:
- main
pull_request:
jobs:
docs:
runs-on: ubuntu-20.04
timeout-minutes: 20
container:
image: envoyproxy/envoy-build-ubuntu:b0ff77ae3f25b0bf595f9b8bba46b489723ab446
steps:
- uses: actions/checkout@v3
- name: Add safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Generate docs
run: mobile/docs/build.sh
- name: Set up deploy key
if: github.ref == 'refs/heads/main'
uses: shimataro/ssh-key-action@70366947e286a60c5196417e82602f5ecbcef96e
with:
key: ${{ secrets.ENVOY_MOBILE_WEBSITE_DEPLOY_KEY }}
known_hosts: unnecessary
- name: Publish docs
if: github.ref == 'refs/heads/main'
run: mobile/docs/publish.sh
- uses: actions/upload-artifact@v3
with:
name: docs
path: generated/docs