@@ -36,12 +36,19 @@ inputs:
3636 azure-account-key :
3737 description : ' Azure Account Name'
3838 required : false
39+ additional-plugins :
40+ description : ' List of additional python plugins to use for site creation'
41+ required : false
42+ skip-publish :
43+ description : ' Indicates whether publish step should be skipped'
44+ required : false
45+ default : ' false'
3946
4047runs :
4148 using : " composite"
4249 steps :
4350 - name : Setup Node
44- uses : actions/setup-node@v3.4.1
51+ uses : actions/setup-node@v3
4552
4653 - name : Setup Python
4754 uses : actions/setup-python@v4
@@ -52,14 +59,23 @@ runs:
5259
5360 - name : Install mkdocs and mkdocs plugins
5461 shell : bash
55- run : python -m pip install mkdocs-techdocs-core==0.*
62+ run : python -m pip install mkdocs-techdocs-core==1.*
63+
64+ - name : Install additional plugins
65+ if : inputs.additional-plugins != ''
66+ shell : bash
67+ run : |
68+ for p in ${{ inputs.additional-plugins }}
69+ do
70+ python -m pip install $p
71+ done
5672
5773 - name : Generate docs site
5874 shell : bash
5975 run : techdocs-cli generate --no-docker --verbose
6076
6177 - name : Publish TechDocs site to AWS S3
62- if : inputs.publisher-type == 'awsS3' && inputs.aws-access-key-id != '' && inputs.aws-secret-access-key != '' && inputs.aws-region != ''
78+ if : inputs.skip-publish == 'false' && inputs. publisher-type == 'awsS3' && inputs.aws-access-key-id != '' && inputs.aws-secret-access-key != '' && inputs.aws-region != ''
6379 shell : bash
6480 env :
6581 AWS_ACCESS_KEY_ID : ${{ inputs.aws-access-key-id }}
7187 --entity ${{ inputs.entity-namespace }}/${{ inputs.entity-kind }}/${{ inputs.entity-name }}
7288
7389 - name : Publish TechDocs site to Azure Blob
74- if : inputs.publisher-type == 'azureBlobStorage' && inputs.azure-account-name != '' && inputs.azure-account-key != ''
90+ if : inputs.skip-publish == 'false' && inputs. publisher-type == 'azureBlobStorage' && inputs.azure-account-name != '' && inputs.azure-account-key != ''
7591 shell : bash
7692 run : |
7793 techdocs-cli publish --publisher-type ${{ inputs.publisher-type }} \
0 commit comments