Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Release Documentation | |
on: | |
release: | |
types: [published] | |
env: | |
SDK_REPO: ${{github.event.repository.name}} | |
BUILD_TYPE: production | |
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: "main" | |
path: ${{env.SDK_REPO}} | |
- name: JSON to variables | |
uses: antifree/[email protected] | |
with: | |
filename: "${{env.SDK_REPO}}/versions.json" | |
prefix: packages | |
- run: | | |
echo ${{env.packages_messages_version}} | |
echo ${{env.packages_grpc_version}} | |
echo ${{env.packages_transforms_version}} | |
echo ${{env.packages_keyboard_teleop_version}} | |
echo ${{env.packages_third_party_version}} | |
echo ${{env.packages_encoder_version}} | |
echo ${{env.packages_digital_interface_version}} | |
- name: Clone and build docs | |
run: | | |
cd ${{env.SDK_REPO}} | |
./deployment-scripts/deploy.sh | |
shell: bash | |
env: | |
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
ENCODER_BRANCH: ${{env.packages_encoder_version}} | |
DIGITAL_INT_BRANCH: ${{env.packages_digital_interface_version}} | |
MESSAGE_BRANCH: ${{env.packages_messages_version}} | |
KEYBOARD_BRANCH: ${{env.packages_keyboard_teleop_version}} | |
GRPC_BRANCH: ${{env.packages_grpc_version}} | |
TRANSFORMS_BRANCH: ${{env.packages_transforms_version}} | |
THIRD_PARTY_BRANCH: ${{env.packages_third_party_version}} | |
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}} |