From e250de5803d8d7497bde53e60fb2f84817297a2b Mon Sep 17 00:00:00 2001 From: Danyal Faheem <138459282+Danyal-Faheem@users.noreply.github.com> Date: Fri, 30 Aug 2024 17:39:37 +0500 Subject: [PATCH] ci: upgrade publish_pypi to ubuntu-latest and python 3.12 (#85) --- .github/workflows/publish_pypi.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 86ac592..52efd77 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -8,15 +8,19 @@ on: jobs: push: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/openedx-scorm-xblock steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 + - name: setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: - python-version: 3.8 + python-version: 3.12 - name: Install setup tool and wheel run: pip install setuptools wheel @@ -25,7 +29,4 @@ jobs: run: python setup.py sdist bdist_wheel - name: Publish to PyPi - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.PYPI_UPLOAD_TOKEN }} + uses: pypa/gh-action-pypi-publish@release/v1