Skip to content

Commit 1b92149

Browse files
authored
Fix doc release deployment (#1118)
* Fix releaser.yml * Fix doc release
1 parent 0337a4c commit 1b92149

File tree

4 files changed

+13
-21
lines changed

4 files changed

+13
-21
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
cname: ${{ env.DOCUMENTATION_CNAME }}
121121
token: ${{ secrets.GITHUB_TOKEN }}
122122
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
123+
decompress-artifact: true
123124

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

.github/workflows/ci_release.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,6 @@ jobs:
184184
needs: [style, tests, docs, examples, retro_232, retro_231, retro_222, retro_221, gate, docker_tests]
185185
runs-on: ubuntu-latest
186186
steps:
187-
- name: "Set up Python"
188-
uses: actions/[email protected]
189-
with:
190-
python-version: 3.9
191-
192187
- name: "Download artifacts"
193188
uses: actions/download-artifact@v3
194189

@@ -204,12 +199,3 @@ jobs:
204199
./**/*.zip
205200
draft: true
206201
generate_release_notes: true
207-
208-
# - name: "Upload to Test PyPi" # Change TOKEN
209-
# run: |
210-
# pip install twine
211-
# twine upload --repository testpypi --skip-existing ./**/*.whl
212-
# twine upload --repository testpypi --skip-existing ./**/*.tar.gz
213-
# env:
214-
# TWINE_USERNAME: __token__
215-
# TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,5 +180,5 @@ jobs:
180180
uses: actions/upload-artifact@v3
181181
with:
182182
name: HTML-doc-${{env.PACKAGE_NAME}}.zip
183-
path: docs/build/html
183+
path: HTML-doc-${{env.PACKAGE_NAME}}.zip
184184
if: always()

.github/workflows/releaser.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,21 @@ jobs:
3939
file: HTML-doc-ansys-dpf-core.zip
4040
token: ${{ secrets.GITHUB_TOKEN }}
4141

42-
# - name: "Unzip HTML Documentation"
43-
# shell: bash
44-
# run: |
45-
# unzip HTML-doc-ansys-dpf-core.zip -d documentation-html
46-
# chmod -R 777 documentation-html
47-
# if: always()
42+
- name: "List downloaded assets"
43+
shell: bash
44+
run: |
45+
ls
46+
47+
- name: "Upload artifact"
48+
uses: actions/upload-artifact@v3
49+
with:
50+
name: HTML-doc-ansys-dpf-core.zip
51+
path: HTML-doc-ansys-dpf-core.zip
4852

4953
- name: "Deploy the stable documentation"
5054
uses: ansys/actions/doc-deploy-stable@v4
5155
with:
5256
cname: ${{ env.DOCUMENTATION_CNAME }}
5357
token: ${{ secrets.GITHUB_TOKEN }}
5458
doc-artifact-name: HTML-doc-ansys-dpf-core.zip
59+
decompress-artifact: true

0 commit comments

Comments
 (0)