forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.14 KB
/
mobile-docs.yml
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
34
35
36
37
38
39
40
41
42
43
44
name: mobile_docs
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
secrets: inherit
docs:
if: ${{ github.repository == 'envoyproxy/envoy' }}
needs: env
runs-on: ${{ needs.env.outputs.agent_ubuntu }}
timeout-minutes: 20
container:
image: ${{ needs.env.outputs.build_image_ubuntu }}
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/[email protected]
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