-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.32 KB
/
next-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
45
46
47
name: Create Next Documentation
on:
push:
branches:
- "main"
schedule:
# * is a special character in YAML so you have to quote this string
# Run an update everyday at 5:30 am to keep next updated
- cron: "30 5 * * *"
workflow_dispatch:
env:
SDK_REPO: ${{github.event.repository.name}}
BUILD_TYPE: next
jobs:
documentation:
runs-on: ubuntu-latest
container: luci.jfrog.io/ros2-sdk-docker-local/sdk-docs-deployment:latest
steps:
- name: Checkout SDK Branch
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
path: ${{env.SDK_REPO}}
- name: Clone and build docs
run: |
cd ${{env.SDK_REPO}}
./deployment-scripts/deploy.sh
shell: bash
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ENCODER_BRANCH: main
DIGITAL_INT_BRANCH: main
MESSAGE_BRANCH: main
KEYBOARD_BRANCH: main
GRPC_BRANCH: main
TRANSFORMS_BRANCH: main
THIRD_PARTY_BRANCH: main
DOCS_BRANCH: main
DOCS_REPO: ${{vars.DOCS_REPO}}
DOCS_ACCOUNT: ${{vars.DOCS_ACCOUNT}} # Push the docs to what ever docs repo is set in the sdk repo secrets (staging or main)
BUILD_TYPE: ${{env.BUILD_TYPE}}
REF_NAME: ${{github.ref_name}}