Skip to content

Commit b52dfff

Browse files
committed
UPD: techdocs config
1 parent 97e7a95 commit b52dfff

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/techdocs-gcs.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
env:
1919
TECHDOCS_BUCKET_NAME: ${{ secrets.TECHDOCS_BUCKET_NAME }}
2020
TECHDOCS_GCS_CREDENTIALS: ${{ secrets.TECHDOCS_GCS_CREDENTIALS }}
21+
ENTITY_NAMESPACE: 'default'
22+
ENTITY_KIND: 'Component'
23+
ENTITY_NAME: 'code-idp-docs'
2124

2225
steps:
2326
- name: Checkout code
@@ -32,7 +35,7 @@ jobs:
3235
run: corepack prepare [email protected] --activate
3336

3437
- name: Set up Node.js
35-
uses: actions/setup-node@v4
38+
uses: actions/setup-node@v3
3639
with:
3740
node-version: ${{ matrix.node-version }}
3841
cache: 'yarn'
@@ -46,10 +49,10 @@ jobs:
4649
run: yarn global add @techdocs/cli
4750

4851
- name: Install mkdocs and mkdocs-plugin
49-
run: python -m pip install mkdocs-techdocs-core==1.**
52+
run: python3 -m pip install mkdocs-techdocs-core==1.*
5053

5154
- name: Generate docs site
5255
run: techdocs-cli generate --no-docker --verbose
5356

5457
- name: Publish docs site
55-
run: techdocs-cli publish --publisher-type googleGcs --storage-name ${{ env.TECHDOCS_BUCKET_NAME }} --gcs-credentials ${{ env.TECHDOCS_GCS_CREDENTIALS }}
58+
run: techdocs-cli publish --publisher-type googleGcs --storage-name $TECHDOCS_BUCKET_NAME --entity $ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME

0 commit comments

Comments
 (0)