From 0190c17f8f721185e399eda2abd3c60b98e8d1e9 Mon Sep 17 00:00:00 2001 From: mmb L <7960706+mammothb@users.noreply.github.com> Date: Sat, 31 Aug 2024 22:02:42 +0800 Subject: [PATCH] build: update runner, python, and pypi-publish version in publish workflow --- .github/workflows/publish.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7a533a0..61b018b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,14 +8,14 @@ on: jobs: publish-test-pypi: name: Build and publish to TestPyPI - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up Python 3.8 - uses: actions/setup-python@v4.5.0 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: "3.10" - name: Build run: | @@ -25,7 +25,7 @@ jobs: python -m build - name: Publish to TestPyPI - uses: pypa/gh-action-pypi-publish@v1.6.4 + uses: pypa/gh-action-pypi-publish@v1.9.0 with: user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} @@ -33,7 +33,7 @@ jobs: - name: Publish to PyPI if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/v') - uses: pypa/gh-action-pypi-publish@v1.6.4 + uses: pypa/gh-action-pypi-publish@v1.9.0 with: user: __token__ password: ${{ secrets.PYPI_API_TOKEN }}