Skip to content

Commit

Permalink
Setup passed password (#429)
Browse files Browse the repository at this point in the history
* use pypi pass from env

* upgrade pip before installing deps

* pass pypi pass explicitly

* use environ competently
  • Loading branch information
zsimjee authored Nov 3, 2023
1 parent 6267a3d commit e56f912
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ jobs:
release:
runs-on: ubuntu-latest

env:
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- 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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__"]))
Expand Down

0 comments on commit e56f912

Please sign in to comment.