Skip to content

Commit

Permalink
FIX: release-github action (#200)
Browse files Browse the repository at this point in the history
Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
  • Loading branch information
jorgepiloto and RobPasMue committed Feb 28, 2023
1 parent e09df89 commit 5749d5c
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions release-github/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ runs:
# ------------------------------------------------------------------------

- uses: pyansys/actions/_logging@v4
if: inputs.additional-artifacts != ''
with:
level: "INFO"
message: >
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5749d5c

Please sign in to comment.