Skip to content

Commit

Permalink
Replace twine with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
jadolg committed Dec 5, 2024
1 parent 6cad628 commit e9cee5b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/rocketchat-API
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/[email protected]
Expand All @@ -17,8 +22,10 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
pip install setuptools wheel
- name: Build
run: |
python setup.py sdist bdist_wheel
twine upload --skip-existing dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e9cee5b

Please sign in to comment.