Skip to content

Commit 64a4995

Browse files
committed
Fix documentation artifact upload
1 parent 009010a commit 64a4995

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
cname: ${{ env.DOCUMENTATION_CNAME }}
110110
token: ${{ secrets.GITHUB_TOKEN }}
111111
doc-artifact-name: HTML-doc-ansys-dpf-core
112+
decompress-artifact: true
112113

113114
examples:
114115
if: startsWith(github.head_ref, 'master') || github.event.action == 'ready_for_review' || !github.event.pull_request.draft

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,15 @@ jobs:
170170
path: docs/*.txt
171171
if: always()
172172

173+
- name: "Zip HTML Documentation"
174+
shell: bash
175+
run: |
176+
zip -9 -r HTML-doc-${{env.PACKAGE_NAME}}.zip docs/build/html/
177+
if: always()
178+
173179
- name: "Upload HTML Documentation"
174180
uses: actions/upload-artifact@v3
175181
with:
176182
name: HTML-doc-${{env.PACKAGE_NAME}}
177-
path: |
178-
docs/build/html/
183+
path: HTML-doc-${{env.PACKAGE_NAME}}.zip
179184
if: always()

.github/workflows/releaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: "Download Release Asset - HTML"
3737
uses: dsaltares/[email protected]
3838
with:
39-
file: HTML-doc-ansys-dpf-core
39+
file: HTML-doc-ansys-dpf-core.zip
4040
token: ${{ secrets.GITHUB_TOKEN }}
4141

4242
- name: "Deploy the stable documentation"
@@ -45,3 +45,4 @@ jobs:
4545
cname: ${{ env.DOCUMENTATION_CNAME }}
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747
doc-artifact-name: HTML-doc-ansys-dpf-core
48+
decompress-artifact: true

0 commit comments

Comments
 (0)