Skip to content

Commit 102ee63

Browse files
committed
fix release action
1 parent 68cf9b1 commit 102ee63

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Upload package
3232
uses: actions/upload-artifact@v3
3333
with:
34-
name: ${{ env.PACKAGE_NAME }}-packages
34+
name: ansys-workbench-core-packages
3535
path: dist/
3636
retention-days: 7
3737

@@ -40,16 +40,27 @@ jobs:
4040
needs: [package]
4141
runs-on: ubuntu-latest
4242
steps:
43+
- name: Set up Python
44+
uses: actions/setup-python@v4
45+
with:
46+
python-version: ${{ env.MAIN_PYTHON_VERSION }}
47+
48+
- name: Download package
49+
uses: actions/download-artifact@v3
50+
51+
- name: Display structure of downloaded files
52+
run: ls -R
53+
4354
- name: Upload to Ansys private PyPI
4455
run: |
4556
pip install twine
46-
twine upload --skip-existing ./**/*.whl
47-
twine upload --skip-existing ./**/*.tar.gz
57+
twine upload --skip-existing ./ansys-workbench-core-packages/*.whl
58+
twine upload --skip-existing ./ansys-workbench-core-packages/*.tar.gz
4859
env:
4960
TWINE_USERNAME: __token__
5061
TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
5162
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
52-
- name: Release
63+
- name: Release it
5364
uses: softprops/action-gh-release@v1
5465
with:
5566
generate_release_notes: true

0 commit comments

Comments
 (0)