Skip to content

Commit ee6196b

Browse files
authored
Merge pull request #4 from oracle/ODSC-42786/add_publish_to_pypi_action
Add github action to publish to pypi - 2
2 parents 4d4a7ba + 88eb3bc commit ee6196b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/publish-to-pypi.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ jobs:
2222
run: |
2323
pip install dist/*.whl
2424
python -c "import oci_mlflow;"
25-
# To run publish to test PyPI, secret with token needs to be added to oracle/oci-mlflow project.
26-
# This one - GH_OCI_MLFLOW_TESTPYPI_TOKEN - removed from project secrets after initial test.
27-
- name: Publish distribution 📦 to Test PyPI
28-
env:
29-
TWINE_USERNAME: __token__
30-
TWINE_PASSWORD: ${{ secrets.GH_OCI_MLFLOW_TESTPYPI_TOKEN }}
31-
run: |
32-
pip install twine
33-
twine upload -r testpypi dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
34-
# - name: Publish distribution 📦 to PyPI
25+
# # To run publish to test PyPI, secret with token needs to be added to oracle/oci-mlflow project.
26+
# # This one - GH_OCI_MLFLOW_TESTPYPI_TOKEN - removed from project secrets after initial test.
27+
# - name: Publish distribution 📦 to Test PyPI
3528
# env:
3629
# TWINE_USERNAME: __token__
37-
# TWINE_PASSWORD: ${{ secrets.GH_OCI_MLFLOW_PYPI_TOKEN }}
30+
# TWINE_PASSWORD: ${{ secrets.GH_OCI_MLFLOW_TESTPYPI_TOKEN }}
3831
# run: |
3932
# pip install twine
40-
# twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
33+
# twine upload -r testpypi dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD
34+
- name: Publish distribution 📦 to PyPI
35+
env:
36+
TWINE_USERNAME: __token__
37+
TWINE_PASSWORD: ${{ secrets.GH_OCI_MLFLOW_PYPI_TOKEN }}
38+
run: |
39+
pip install twine
40+
twine upload dist/* -u $TWINE_USERNAME -p $TWINE_PASSWORD

0 commit comments

Comments
 (0)