Skip to content

Commit

Permalink
Update python-publish.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak7376 authored Jun 11, 2024
1 parent cb37b57 commit f62e07e
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/python-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

name: Upload Python Package

on:
Expand All @@ -24,13 +21,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install setuptools wheel
- name: Build package
run: python -m build
run: python setup.py sdist bdist_wheel
- name: Publish package
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_SECRET_ROBUSTBASE }}
run: |
python -m pip install twine
python -m twine upload --repository pypi dist/*
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_SECRET_ROBUSTBASE }}

0 comments on commit f62e07e

Please sign in to comment.