Skip to content

Commit

Permalink
Testing: Upload to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Feb 23, 2024
1 parent dcb3928 commit c4406cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ jobs:
- build_sdist_python_wheel
runs-on: ubuntu-latest
environment:
name: PyPI
url: https://pypi.org/project/mypy-dev/
name: TestPyPI
url: https://test.pypi.org/project/mypy-dev/
permissions:
contents: write # Required to upload release assets
steps:
Expand Down Expand Up @@ -187,11 +187,11 @@ jobs:
data: await fs.readFile(`./dist/${file}`)
});
}
- name: Upload to PyPI
- name: Upload to TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
env:
TWINE_REPOSITORY: pypi
TWINE_REPOSITORY: testpypi
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
run: |
twine upload --verbose dist/*

0 comments on commit c4406cd

Please sign in to comment.