From 413a3d56cba51b2450d4eb3186fa46ae5b45477a Mon Sep 17 00:00:00 2001 From: Kwanghee Choi Date: Wed, 15 Oct 2025 17:29:23 -0500 Subject: [PATCH] add automated pypi releases --- .github/workflows/cd.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 041be01..168aae9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -15,6 +15,9 @@ concurrency: jobs: release: + environment: + name: pypi + url: https://pypi.org/project/epitran/ runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -83,6 +86,6 @@ jobs: path: dist if-no-files-found: error - # - name: Publish to PyPI via OIDC - # if: steps.release.outputs.released == 'true' - # uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish to PyPI via OIDC + if: steps.release.outputs.released == 'true' + uses: pypa/gh-action-pypi-publish@release/v1