-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.17 KB
/
publish-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
on:
workflow_dispatch:
inputs:
pkg_workspace:
description: 'The package to publish'
required: true
type: choice
options:
- pkgs/sdk/client
- pkgs/sdk/server
- pkgs/telemetry
name: Publish Docs
jobs:
build-publish:
runs-on: macos-latest
permissions:
contents: write # Needed in this case to write github pages.
steps:
- uses: actions/checkout@v4
- name: Setup Env from project's Env file
shell: bash
run: echo "$(cat ${{ inputs.pkg_workspace }}/github_actions.env)" >> $GITHUB_ENV
- id: build
name: Build and Test SDK
uses: ./.github/actions/ci
with:
project_file: ${{ env.PROJECT_FILE }}
test_project_file: ${{ env.TEST_PROJECT_FILE }}
- id: build-docs
name: Build Documentation
uses: ./.github/actions/build-docs
with:
workspace_path: ${{ env.WORKSPACE_PATH }}
- id: publish-docs
name: Publish Documentation
uses: ./.github/actions/publish-docs
with:
workspace_path: ${{ env.WORKSPACE_PATH }}
token: ${{secrets.GITHUB_TOKEN}}