diff --git a/release-github/action.yml b/release-github/action.yml index f77bc07d4..fe249dde9 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -109,6 +109,7 @@ runs: # ------------------------------------------------------------------------ - uses: pyansys/actions/_logging@v4 + if: inputs.additional-artifacts != '' with: level: "INFO" message: > @@ -117,9 +118,10 @@ runs: - name: "Move additional artifacts to dist/wheelhouse directory" shell: bash + if: inputs.additional-artifacts != '' run: | mkdir -p dist/extra - for artifact in (${${{ inputs.additional-artifacts }}}); do + for artifact in ${{ inputs.additional-artifacts }}; do mv /tmp/artifacts/$artifact dist/extra/$artifact done @@ -129,15 +131,31 @@ runs: with: level: "INFO" message: > - Display and + Display the structure of the 'dist/' folder. Upload all artifacts. - - name: "Display the structure of the artifacts folder" + - name: "Display the structure of the 'dist/' folder" shell: bash run: ls -R dist/ - name: "Release to GitHub" uses: softprops/action-gh-release@v1 - if: inputs.dry-run != 'false' + if: inputs.dry-run != 'false' && inputs.additional-artifacts == '' + with: + files: | + # Include wheel and source distribution artifacts + dist/${{ inputs.library-name }}-artifacts/*.whl + dist/${{ inputs.library-name }}-artifacts/*.tar.gz + + # Include wheelhouse artifacts + dist/wheelhouse/**/*-wheelhouse-*.zip + + # Include HTML and PDF documentation artifacts + dist/documentation/documentation-html.zip + dist/documentation/documentation-pdf.zip + + - name: "Release to GitHub" + uses: softprops/action-gh-release@v1 + if: inputs.dry-run != 'false' && inputs.additional-artifacts != '' with: files: | # Include wheel and source distribution artifacts