Skip to content

Commit 1c5a6fb

Browse files
committed
ci: use reusable workflow when publishing
1 parent f4a15be commit 1c5a6fb

File tree

1 file changed

+3
-24
lines changed

1 file changed

+3
-24
lines changed

.github/workflows/pypi-release.yml

Lines changed: 3 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,6 @@ on:
1313
- v*
1414

1515
jobs:
16-
build-n-publish:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v4
20-
21-
- name: Set up Python 3.9
22-
uses: actions/setup-python@v5
23-
with:
24-
python-version: 3.9
25-
26-
- name: Install dependencies
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install setuptools wheel
30-
- name: Build package
31-
run: |
32-
python setup.py sdist bdist_wheel
33-
- name: pypi-publish
34-
uses: pypa/[email protected]
35-
with:
36-
user: __token__
37-
38-
password: ${{ secrets.pypi_token }}
39-
16+
Build-N-Publish:
17+
uses: inveniosoftware/workflows/.github/workflows/pypi-publish.yml@master
18+
secrets: inherit

0 commit comments

Comments
 (0)