Skip to content

Commit 6ee78e9

Browse files
committed
Add upload step for VuePress site to Azure storage
1 parent d45f0af commit 6ee78e9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,12 @@ runs:
104104
run: |
105105
cd vuepress
106106
npm ci && ${{ inputs.debug-build == true && 'DEBUG=*' || '' }} npm run build ${{ inputs.debug-build == true && '-- --debug' || '' }}
107+
108+
- name: Upload VuePress site
109+
shell: bash
110+
run: |
111+
cd vuepress
112+
curl --request POST \
113+
--header "Authorization: Bearer ${{steps.token.outputs.token}}" \
114+
--form Docs=@./.vuepress/dist.zip \
115+
"https://developer.bcc.no/UploadDoc?isPublic=${{inputs.public}}&auth=${{inputs.authentication}}&customContainerName=DocumentationSite"

0 commit comments

Comments
 (0)