Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Sorin Birchi <sb.birchi.sorin@gmail.com>
  • Loading branch information
Sorin Birchi committed Aug 25, 2024
1 parent 7a7a103 commit 8c33259
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
tags:
- 'v*'

jobs:
pypi-publish:
name: upload release to PyPI
Expand All @@ -15,8 +16,23 @@ jobs:
permissions:
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v2

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

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
username: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 8c33259

Please sign in to comment.