From f37b83c3ace04db9bbfe5883d591c18d61e7b5aa Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Fri, 7 Jun 2024 15:23:51 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B46=E6=9C=887=E6=97=A5=20=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E4=B8=8B04?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pypi.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 23e739c..983172a 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -4,20 +4,17 @@ on: push: branches: - main - # schedule: - # - cron: '0 4 */1 * *' - jobs: build: name: Publish Python 🐍 distributions 📦 to PyPI runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: - fetch-depth: 0 + fetch-depth: 1 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: 3.9 @@ -31,7 +28,7 @@ jobs: python setup.py sdist bdist_wheel - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@main + uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: __token__ password: ${{ secrets.pypi_password }} @@ -39,4 +36,5 @@ jobs: +