Skip to content

Commit 2a4ffa8

Browse files
committed
Updated ci.yml
1 parent d394e42 commit 2a4ffa8

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,22 @@ jobs:
4949
- name: Set up Python
5050
uses: actions/setup-python@v2
5151
with:
52-
python-version: 3.10
52+
python-version: "3.10"
5353

5454
- uses: actions/download-artifact@v2
5555

5656
- name: Display structure of downloaded files
5757
run: ls -R
5858

59-
# uncomment the following section to permit upload to public PyPI
60-
61-
# - name: Upload to Public PyPi
62-
# run: |
63-
# pip install twine
64-
# twine upload --skip-existing ./**/*.whl
65-
# twine upload --skip-existing ./**/*.tar.gz
66-
# env:
67-
# TWINE_USERNAME: __token__
68-
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
59+
- name: Upload to Private PyPi
60+
run: |
61+
pip install twine
62+
twine upload --skip-existing ./**/*.whl
63+
twine upload --skip-existing ./**/*.tar.gz
64+
env:
65+
TWINE_USERNAME: PAT
66+
TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
67+
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
6968

7069
- name: Release
7170
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)