diff --git a/.github/workflows/release_version.yml b/.github/workflows/release_version.yml index 52918f4f1..7585977a3 100644 --- a/.github/workflows/release_version.yml +++ b/.github/workflows/release_version.yml @@ -7,6 +7,9 @@ jobs: release: runs-on: ubuntu-latest + env: + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + steps: - name: Checkout Repository uses: actions/checkout@v2 @@ -14,7 +17,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v2 with: - python-version: 3.x + python-version: 3.11.x - name: Install twine and wheel run: pip install twine wheel diff --git a/setup.py b/setup.py index 9f2cd0ccf..d11937b53 100644 --- a/setup.py +++ b/setup.py @@ -149,7 +149,7 @@ def run(self): os.system("{0} setup.py sdist bdist_wheel --universal".format(sys.executable)) self.status("Uploading the package to PyPI via Twine…") - os.system("twine upload dist/*") + os.system(f"twine upload -u shreyar -p {os.environ['PYPI_PASSWORD']} dist/*") self.status("Pushing git tags…") os.system("git tag v{0}".format(about["__version__"]))