Skip to content

Commit 8bb736e

Browse files
divipillaitrantanen
authored andcommitted
doc: Exclude the Azure publishing workflow
Exclude the Azure publishing workflow for Techdocs upload. Signed-off-by: divya pillai <divya.pillai@nordicsemi.no>
1 parent 46f9a0a commit 8bb736e

1 file changed

Lines changed: 0 additions & 41 deletions

File tree

.github/workflows/doc-publish.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -30,47 +30,6 @@ jobs:
3030
unzip legacy-addon-serial-modem*.zip -d $OUTDIR
3131
find "$OUTDIR" -type l -delete
3232
33-
- name: Obtain PR number
34-
if: ${{ github.event.workflow_run.event == 'pull_request' }}
35-
working-directory: doc
36-
run: |
37-
if [ -f pr.txt ]; then
38-
PR=$(head -n 1 pr.txt | tr -cd '0-9')
39-
fi
40-
printf 'PR=%s\n' "$PR" >> "$GITHUB_ENV"
41-
42-
- name: Upload to Azure storage
43-
working-directory: doc
44-
env:
45-
AZCOPY_CONCURRENCY_VALUE: 1024
46-
NCS_DOC_SAS_PRS: ${{ secrets.NCS_DOC_SAS_PRS }}
47-
NCS_DOC_SAS_MAIN: ${{ secrets.NCS_DOC_SAS_MAIN }}
48-
run: |
49-
if [[ "${{ github.event.workflow_run.event }}" == "pull_request" ]]; then
50-
azcopy cp $OUTDIR "${{ vars.NCS_DOC_PR_STORAGE_URL }}addons/serial-modem?$NCS_DOC_SAS_PRS" --recursive=true
51-
else
52-
azcopy cp $OUTDIR "${{ vars.NCS_DOC_STORAGE_URL }}addons/serial-modem?$NCS_DOC_SAS_MAIN" --recursive=true
53-
fi
54-
55-
- name: Find Comment
56-
if: ${{ github.event.workflow_run.event == 'pull_request' }}
57-
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3
58-
id: fc
59-
with:
60-
issue-number: ${{ env.PR }}
61-
comment-author: 'github-actions[bot]'
62-
body-includes: documentation preview
63-
64-
- name: Create or update comment
65-
if: ${{ github.event.workflow_run.event == 'pull_request' }}
66-
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4
67-
with:
68-
comment-id: ${{ steps.fc.outputs.comment-id }}
69-
issue-number: ${{ env.PR }}
70-
body: |
71-
You can find the documentation preview for this PR [here](${{ vars.NCS_DOC_PR_HOSTING_URL }}addons/serial-modem/PR-${{ env.PR }}/).
72-
edit-mode: replace
73-
7433
- name: Prepare Key
7534
run: |
7635
mkdir -p ~/.ssh

0 commit comments

Comments
 (0)