Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EitanJoseph authored Dec 26, 2024
1 parent b0e78bc commit 67a257a
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,29 @@ jobs:
runs-on: ubuntu-latest

steps:
# Checkout the repository
- name: Check out code
uses: actions/checkout@v3
# Check out the repository
- name: Check out code
uses: actions/checkout@v3

# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
# Build the package
- name: Build the package
run: |
python setup.py sdist bdist_wheel
# Build the package
- name: Build the package
run: |
python -m build
# Publish to PyPI
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
# Publish to PyPI
- name: Publish to PyPI
uses: pypa/gh-action-publish-pypi@release/v1
with:
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 67a257a

Please sign in to comment.