X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/79575f3376f043186d8b8c4885ef51c6b3c36246..799adb53239e4a1e87253d40bc1cbd34f9103c52:/.github/workflows/pypi_upload.yml?ds=sidebyside diff --git a/.github/workflows/pypi_upload.yml b/.github/workflows/pypi_upload.yml index 201d94f..cda215a 100644 --- a/.github/workflows/pypi_upload.yml +++ b/.github/workflows/pypi_upload.yml @@ -4,25 +4,30 @@ on: release: types: [published] +permissions: + contents: read + jobs: build: name: PyPI Upload runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 + with: + python-version: "*" - - name: Install latest pip, setuptools, twine + wheel + - name: Install latest pip, build, twine run: | - python -m pip install --upgrade pip setuptools twine wheel + python -m pip install --upgrade --disable-pip-version-check pip + python -m pip install --upgrade build twine - - name: Build wheels + - name: Build wheel and source distributions run: | - python setup.py bdist_wheel - python setup.py sdist + python -m build - name: Upload to PyPI via Twine env: