Skip to content

Commit a976fdd

Browse files
committed
cicd: improve workflow
1 parent 8109a03 commit a976fdd

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
runs-on: ubuntu-latest
8484
steps:
8585
- name: Set up Python
86-
uses: actions/setup-python@v2
86+
uses: actions/setup-python@v4
8787
with:
8888
python-version: ${{ env.MAIN_PYTHON_VERSION }}
8989

@@ -92,27 +92,14 @@ jobs:
9292
- name: Display structure of downloaded files
9393
run: ls -R
9494

95-
# uncomment the following section to permit upload to public PyPI
96-
97-
# - name: Upload to Public PyPi
98-
# run: |
99-
# pip install twine
100-
# twine upload --skip-existing ./**/*.whl
101-
# twine upload --skip-existing ./**/*.tar.gz
102-
# env:
103-
# TWINE_USERNAME: __token__
104-
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
105-
106-
- name: Upload to Private PyPi
95+
- name: Upload to Public PyPi
10796
run: |
10897
pip install twine
10998
twine upload --skip-existing ./**/*.whl
11099
twine upload --skip-existing ./**/*.tar.gz
111100
env:
112-
TWINE_USERNAME: PAT
113-
TWINE_PASSWORD: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }}
114-
TWINE_REPOSITORY_URL: https://pkgs.dev.azure.com/pyansys/_packaging/pyansys/pypi/upload
115-
101+
TWINE_USERNAME: __token__
102+
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
116103

117104
- name: Release
118105
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)