Skip to content

Commit 80ec1ad

Browse files
authored
Make PyPI upload workflow a single workflow (#170)
* Make PyPI upload workflow a single workflow * Add runs-on
1 parent 632993e commit 80ec1ad

File tree

2 files changed

+24
-39
lines changed

2 files changed

+24
-39
lines changed

.github/workflows/_publish-pypi.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,31 @@ jobs:
3737
deploy_key: ${{ github.event_name == 'release' && secrets.ACTIONS_DOCUMENTATION_DEPLOY_KEY || '' }}
3838

3939
pypi:
40+
name: Publish package to PyPI
41+
runs-on: ubuntu-latest
4042
if: success() && github.event_name == 'release'
4143
needs: [lint, test, docs]
42-
uses: ./.github/workflows/_publish-pypi.yml
4344
permissions:
4445
id-token: write
46+
47+
steps:
48+
- uses: actions/checkout@v3
49+
with:
50+
fetch-depth: 0
51+
52+
- name: Set up Python
53+
uses: actions/setup-python@v4
54+
with:
55+
python-version: '3.x'
56+
57+
- name: Build package
58+
run: |
59+
set -vxeuo pipefail
60+
python -m pip install --upgrade pip
61+
pip install build
62+
python -m build
63+
64+
- name: Publish wheels to PyPI
65+
uses: pypa/gh-action-pypi-publish@release/v1
66+
with:
67+
packages-dir: ./dist/

0 commit comments

Comments
 (0)