Skip to content

Seemingly wrong specification of GitHub Action for publishing to PyPI / TestPyPI #1108

Closed
@lmcmicu

Description

@lmcmicu

The code at this link:

    - name: Publish distribution 📦 to Test PyPI
      uses: pypa/gh-action-pypi-publish@master
      with:
        password: ${{ secrets.TEST_PYPI_API_TOKEN }}
        repository_url: https://test.pypi.org/legacy/
    - name: Publish distribution 📦 to PyPI
      if: startsWith(github.ref, 'refs/tags')
      uses: pypa/gh-action-pypi-publish@master
      with:
        password: ${{ secrets.PYPI_API_TOKEN }}

Does not match the usage from the README of the GitHub Action's website. Further it does not work.

In particular the above code has the following problems:

  1. The user: __token__ field is missing.
  2. The specified action should not be taken from the master branch. It should point to a release. Currently the latest is @release/v1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions