Skip to content

Commit 8db3fd0

Browse files
committed
Manually setting the publish step
1 parent 44b52ac commit 8db3fd0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/publish-manual.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to PyPI [Production]
1+
name: Publish to PyPI Manual [Production]
22

33
# Allow manual triggering of the workflow
44
on:
@@ -67,16 +67,15 @@ jobs:
6767
#----------------------------------------------
6868
- name: Build and publish databricks sql connector to PyPI
6969
working-directory: ./databricks_sql_connector
70-
uses: JRubics/poetry-publish@v1.10 # Use the poetry-publish action to handle publishing
71-
with:
72-
pypi_token: ${{ secrets.PROD_PYPI_TOKEN }} # The PyPI token for authentication, stored in GitHub Secrets
73-
70+
run: |
71+
poetry build
72+
poetry publish -u __token__ -p ${{ secrets.PROD_PYPI_TOKEN }} # Publish with PyPI token
7473
#----------------------------------------------
7574
# Step 7: Build and publish the second package to PyPI
7675
#----------------------------------------------
7776

7877
- name: Build and publish databricks sql connector core to PyPI
7978
working-directory: ./databricks_sql_connector_core
80-
uses: JRubics/poetry-publish@v1.10 # Use the poetry-publish action to handle publishing
81-
with:
82-
pypi_token: ${{ secrets.PROD_PYPI_TOKEN }} # The PyPI token for authentication, stored in GitHub Secrets
79+
run: |
80+
poetry build
81+
poetry publish -u __token__ -p ${{ secrets.PROD_PYPI_TOKEN }} # Publish with PyPI token

0 commit comments

Comments
 (0)