Skip to content

Commit 21a94db

Browse files
enable pypi deploy
1 parent bb78f7c commit 21a94db

File tree

1 file changed

+26
-29
lines changed

1 file changed

+26
-29
lines changed

.github/workflows/tidy3d-python-client-release.yml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -452,36 +452,33 @@ jobs:
452452
env:
453453
RELEASE_TAG: ${{ needs.determine-workflow-scope.outputs.release_tag }}
454454
steps:
455-
- run: |
456-
echo "steps"
457-
458-
# - name: checkout-tag
459-
# uses: actions/checkout@v4
460-
# with:
461-
# ref: ${{ env.RELEASE_TAG }}
462-
# persist-credentials: false
455+
- name: checkout-tag
456+
uses: actions/checkout@v4
457+
with:
458+
ref: ${{ env.RELEASE_TAG }}
459+
persist-credentials: false
463460

464-
# - name: setup-python
465-
# uses: actions/setup-python@v5
466-
# with:
467-
# python-version: '3.10'
461+
- name: setup-python
462+
uses: actions/setup-python@v5
463+
with:
464+
python-version: '3.10'
468465

469-
# - name: install-build-tools
470-
# run: |
471-
# python -m pip install --upgrade pip
472-
# python -m pip install setuptools wheel twine build
466+
- name: install-build-tools
467+
run: |
468+
python -m pip install --upgrade pip
469+
python -m pip install setuptools wheel twine build
473470
474-
# - name: build-package
475-
# run: |
476-
# echo "Building package from tag $RELEASE_TAG..."
477-
# python -m build
478-
# ls -lh dist/
471+
- name: build-package
472+
run: |
473+
echo "Building package from tag $RELEASE_TAG..."
474+
python -m build
475+
ls -lh dist/
479476
480-
# - name: publish-to-pypi
481-
# env:
482-
# TWINE_USERNAME: __token__
483-
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
484-
# run: | # zizmor: ignore[use-trusted-publishing]
485-
# echo "Publishing to PyPI..."
486-
# python -m twine upload --repository pypi dist/*
487-
# echo "Published to PyPI"
477+
- name: publish-to-pypi
478+
env:
479+
TWINE_USERNAME: __token__
480+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
481+
run: | # zizmor: ignore[use-trusted-publishing]
482+
echo "Publishing to PyPI..."
483+
python -m twine upload --repository pypi dist/*
484+
echo "Published to PyPI"

0 commit comments

Comments
 (0)