From 514fde89a574efca970145962235307d12bdcaea Mon Sep 17 00:00:00 2001 From: Dong-hee Na Date: Sat, 3 Dec 2022 23:03:28 +0900 Subject: [PATCH] .github: Update publish.yml --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 89ca6b96..3068f91a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Upload Python Package on: release: - types: [created] + types: [published] jobs: deploy: @@ -14,6 +14,8 @@ jobs: uses: actions/setup-python@v4 with: python-version: '3.x' + cache: pip + cache-dependency-path: pyproject.toml - name: Install dependencies run: | python -m pip install --user --upgrade build @@ -23,7 +25,7 @@ jobs: - name: Publish distribution 📦 to PyPI if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' - uses: pypa/gh-action-pypi-publish@master + uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }}