Skip to content

Commit 215caab

Browse files
committed
revert comments
1 parent 46789b7 commit 215caab

File tree

1 file changed

+94
-94
lines changed

1 file changed

+94
-94
lines changed

action.yml

Lines changed: 94 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -62,108 +62,108 @@ runs:
6262
ref: master
6363
token: ${{ inputs.pat }}
6464

65-
# - name: Check out current repository
66-
# uses: actions/checkout@v5
67-
# with:
68-
# path: source
65+
- name: Check out current repository
66+
uses: actions/checkout@v5
67+
with:
68+
path: source
6969

70-
# - name: Zip Markdown files
71-
# shell: bash
72-
# run: |
73-
# cd source/${{ inputs.docs-dir }}
74-
# zip -r MarkdownDocs.zip .
70+
- name: Zip Markdown files
71+
shell: bash
72+
run: |
73+
cd source/${{ inputs.docs-dir }}
74+
zip -r MarkdownDocs.zip .
7575
76-
# - name: Zip Vue components (if they exist)
77-
# shell: bash
78-
# run: |
79-
# if [ -d "source/${{ inputs.components-dir }}" ]; then
80-
# cd source/${{ inputs.components-dir }}
81-
# zip -r VueComponents.zip .
82-
# fi
76+
- name: Zip Vue components (if they exist)
77+
shell: bash
78+
run: |
79+
if [ -d "source/${{ inputs.components-dir }}" ]; then
80+
cd source/${{ inputs.components-dir }}
81+
zip -r VueComponents.zip .
82+
fi
8383
84-
# - uses: microsoft/variable-substitution@v1
85-
# with:
86-
# files: "vuepress/docs/.vuepress/data.json"
87-
# env:
88-
# title: ${{ inputs.title }}
89-
# description: ${{ inputs.description }}
90-
# base: ${{ inputs.base }}
91-
# docsRepo: ${{ github.repository }}
92-
# docsDir: ${{ inputs.docs-dir }}
93-
# docsBranch: ${{ inputs.branch }}
94-
# collapseSidebarSections: ${{ inputs.collapse-sidebar }}
95-
# autoRegisterComponents: ${{ inputs.auto-register-components }}
84+
- uses: microsoft/variable-substitution@v1
85+
with:
86+
files: "vuepress/docs/.vuepress/data.json"
87+
env:
88+
title: ${{ inputs.title }}
89+
description: ${{ inputs.description }}
90+
base: ${{ inputs.base }}
91+
docsRepo: ${{ github.repository }}
92+
docsDir: ${{ inputs.docs-dir }}
93+
docsBranch: ${{ inputs.branch }}
94+
collapseSidebarSections: ${{ inputs.collapse-sidebar }}
95+
autoRegisterComponents: ${{ inputs.auto-register-components }}
9696

97-
# - name: Get Token from GitHub
98-
# id: token
99-
# shell: bash
100-
# run: |
101-
# curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://github.com/bcc-code" | jq -r ".value" | echo -e "token=$(</dev/stdin)\n" >> $GITHUB_OUTPUT
97+
- name: Get Token from GitHub
98+
id: token
99+
shell: bash
100+
run: |
101+
curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=https://github.com/bcc-code" | jq -r ".value" | echo -e "token=$(</dev/stdin)\n" >> $GITHUB_OUTPUT
102102
103-
# - name: Upload Markdown files to azure storage
104-
# shell: bash
105-
# run: |
106-
# curl --request POST \
107-
# --header "Authorization: Bearer ${{steps.token.outputs.token}}" \
108-
# --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
109-
# --form Docs=@source/${{ inputs.docs-dir }}/MarkdownDocs.zip \
110-
# "https://developer.bcc.no/UploadMdContainer?aggregateContainer=mddocs&root=${{inputs.root}}"
103+
- name: Upload Markdown files to azure storage
104+
shell: bash
105+
run: |
106+
curl --request POST \
107+
--header "Authorization: Bearer ${{steps.token.outputs.token}}" \
108+
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
109+
--form Docs=@source/${{ inputs.docs-dir }}/MarkdownDocs.zip \
110+
"https://developer.bcc.no/UploadMdContainer?aggregateContainer=mddocs&root=${{inputs.root}}"
111111
112-
# - name: Upload Vue components to azure storage (if they exist)
113-
# shell: bash
114-
# run: |
115-
# if [ -f "source/${{ inputs.components-dir }}/VueComponents.zip" ]; then
116-
# curl --request POST \
117-
# --header "Authorization: Bearer ${{steps.token.outputs.token}}" \
118-
# --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
119-
# --form Docs=@source/${{ inputs.components-dir }}/VueComponents.zip \
120-
# "https://developer.bcc.no/UploadDoc?isPublic=false&customContainerName=components"
121-
# fi
112+
- name: Upload Vue components to azure storage (if they exist)
113+
shell: bash
114+
run: |
115+
if [ -f "source/${{ inputs.components-dir }}/VueComponents.zip" ]; then
116+
curl --request POST \
117+
--header "Authorization: Bearer ${{steps.token.outputs.token}}" \
118+
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
119+
--form Docs=@source/${{ inputs.components-dir }}/VueComponents.zip \
120+
"https://developer.bcc.no/UploadDoc?isPublic=false&customContainerName=components"
121+
fi
122122
123-
# - name: Download Markdown files from azure storage
124-
# shell: bash
125-
# run: |
126-
# cd vuepress/docs/
127-
# curl --request GET \
128-
# --header "Authorization: Bearer ${{steps.token.outputs.token}}" \
129-
# --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
130-
# "https://developer.bcc.no/GetDoc?container=mddocs" \
131-
# --output MarkdownDocs.zip
132-
# unzip -o MarkdownDocs.zip
123+
- name: Download Markdown files from azure storage
124+
shell: bash
125+
run: |
126+
cd vuepress/docs/
127+
curl --request GET \
128+
--header "Authorization: Bearer ${{steps.token.outputs.token}}" \
129+
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
130+
"https://developer.bcc.no/GetDoc?container=mddocs" \
131+
--output MarkdownDocs.zip
132+
unzip -o MarkdownDocs.zip
133133
134-
# - name: Download Vue components from azure storage
135-
# shell: bash
136-
# run: |
137-
# mkdir -p vuepress/docs/.vuepress/auto-register-components
138-
# cd vuepress/docs/.vuepress/auto-register-components
139-
# curl --request GET \
140-
# --header "Authorization: Bearer ${{steps.token.outputs.token}}" \
141-
# --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
142-
# "https://developer.bcc.no/GetDoc?container=components" \
143-
# --output VueComponents.zip
144-
# if [ -f "VueComponents.zip" ]; then
145-
# unzip -o VueComponents.zip
146-
# rm VueComponents.zip
147-
# fi
134+
- name: Download Vue components from azure storage
135+
shell: bash
136+
run: |
137+
mkdir -p vuepress/docs/.vuepress/auto-register-components
138+
cd vuepress/docs/.vuepress/auto-register-components
139+
curl --request GET \
140+
--header "Authorization: Bearer ${{steps.token.outputs.token}}" \
141+
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
142+
"https://developer.bcc.no/GetDoc?container=components" \
143+
--output VueComponents.zip
144+
if [ -f "VueComponents.zip" ]; then
145+
unzip -o VueComponents.zip
146+
rm VueComponents.zip
147+
fi
148148
149-
# - name: Build VuePress site
150-
# shell: bash
151-
# run: |
152-
# chmod -R u+rwX vuepress/docs || true
153-
# cd vuepress
154-
# npm ci && ${{ inputs.debug-build == true && 'DEBUG=*' || '' }} npm run build ${{ inputs.debug-build == true && '-- --debug' || '' }}
149+
- name: Build VuePress site
150+
shell: bash
151+
run: |
152+
chmod -R u+rwX vuepress/docs || true
153+
cd vuepress
154+
npm ci && ${{ inputs.debug-build == true && 'DEBUG=*' || '' }} npm run build ${{ inputs.debug-build == true && '-- --debug' || '' }}
155155
156-
# - name: Zips built site files
157-
# shell: bash
158-
# run: |
159-
# cd vuepress/docs/.vuepress/dist
160-
# zip -r Docs.zip .
156+
- name: Zips built site files
157+
shell: bash
158+
run: |
159+
cd vuepress/docs/.vuepress/dist
160+
zip -r Docs.zip .
161161
162-
# - name: Upload VuePress site
163-
# shell: bash
164-
# run: |
165-
# curl --request POST \
166-
# --header "Authorization: Bearer ${{steps.token.outputs.token}}" \
167-
# --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
168-
# --form Docs=@vuepress/docs/.vuepress/dist/Docs.zip \
169-
# "https://developer.bcc.no/UploadDoc?isPublic=${{inputs.public}}&auth=${{inputs.authentication}}&customContainerName=docs"
162+
- name: Upload VuePress site
163+
shell: bash
164+
run: |
165+
curl --request POST \
166+
--header "Authorization: Bearer ${{steps.token.outputs.token}}" \
167+
--header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
168+
--form Docs=@vuepress/docs/.vuepress/dist/Docs.zip \
169+
"https://developer.bcc.no/UploadDoc?isPublic=${{inputs.public}}&auth=${{inputs.authentication}}&customContainerName=docs"

0 commit comments

Comments
 (0)