Skip to content

Commit

Permalink
ci: use reusable workflow when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Nov 19, 2024
1 parent f4a15be commit 1c5a6fb
Showing 1 changed file with 3 additions and 24 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,6 @@ on:
- v*

jobs:
build-n-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9

- 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: pypi-publish
uses: pypa/[email protected]
with:
user: __token__

password: ${{ secrets.pypi_token }}

Build-N-Publish:
uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master
secrets: inherit

0 comments on commit 1c5a6fb

Please sign in to comment.