@@ -433,10 +433,62 @@ jobs:
433
433
twine-username : " __token__"
434
434
twine-token : ${{ secrets.PYPI_TOKEN }}
435
435
436
- - name : Release to GitHub
437
- uses : ansys/actions/release-github@v4
436
+ # TODO: Uncomment once PDF file generation is fixed in CICD
437
+ # - name: Release to GitHub
438
+ # uses: ansys/actions/release-github@v4
439
+ # with:
440
+ # library-name: ${{ env.PACKAGE_NAME }}
441
+ - name : " Download all artifacts that got generated in the CI/CD"
442
+ uses : actions/download-artifact@v3
438
443
with :
439
- library-name : ${{ env.PACKAGE_NAME }}
444
+ path : /tmp/artifacts
445
+
446
+ - name : " Generate a distribution folder that will contain the desired artifacts"
447
+ shell : bash
448
+ run : mkdir -p dist
449
+
450
+ - name : " Moving documentation artifacts to dist/documentation directory"
451
+ shell : bash
452
+ run : |
453
+ mkdir -p dist/documentation
454
+ mv /tmp/artifacts/documentation-html dist/documentation/documentation-html
455
+
456
+ - name : " Compressing HTML documentation"
457
+
458
+ with :
459
+ files : dist/documentation/documentation-html
460
+ dest : dist/documentation/documentation-html.zip
461
+
462
+ - name : " Move wheelhouse artifacts to dist/wheelhouse directory"
463
+ shell : bash
464
+ run : |
465
+ mkdir -p dist/wheelhouse
466
+ mv /tmp/artifacts/**/*-wheelhouse-*.zip dist/wheelhouse/
467
+
468
+ - name : " Move wheel artifacts to dist/${{ env.PACKAGE_NAME }}-artifacts directory"
469
+ shell : bash
470
+ run : |
471
+ mv /tmp/artifacts/${{ env.PACKAGE_NAME }}-artifacts dist/${{ env.PACKAGE_NAME }}-artifacts
472
+
473
+ - name : " Display the structure of the 'dist/' folder"
474
+ shell : bash
475
+ run : ls -R dist/
476
+
477
+ - name : " Release to GitHub"
478
+ uses : softprops/action-gh-release@v2
479
+ with :
480
+ fail_on_unmatched_files : false
481
+ generate_release_notes : true
482
+ files : |
483
+ # Include wheel and source distribution artifacts
484
+ dist/${{ inputs.library-name }}-artifacts/*.whl
485
+ dist/${{ inputs.library-name }}-artifacts/*.tar.gz
486
+
487
+ # Include wheelhouse artifacts
488
+ dist/wheelhouse/**/*-wheelhouse-*.zip
489
+
490
+ # Include HTML documentation artifacts
491
+ dist/documentation/documentation-html.zip
440
492
441
493
upload-dev-doc :
442
494
name : Upload dev documentation
0 commit comments