Skip to content

Commit a780f88

Browse files
authored
Update publish ci (#1921)
* update publish.yaml ci Signed-off-by: cosmicBboy <[email protected]> * debug Signed-off-by: cosmicBboy <[email protected]> * debug Signed-off-by: cosmicBboy <[email protected]> --------- Signed-off-by: cosmicBboy <[email protected]>
1 parent 37089cf commit a780f88

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

.github/workflows/publish.yml

+12-15
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Publish Python Package
33
on:
44
release:
55
types: [published]
6+
push:
7+
branches:
8+
- update-publish-ci
69

710
jobs:
811
publish:
@@ -18,20 +21,14 @@ jobs:
1821
- name: Install dependencies
1922
run: |
2023
python -m pip install --upgrade pip
21-
pip install setuptools wheel twine
22-
- name: Autobump version
23-
id: bump
24-
run: |
25-
# from refs/tags/v1.2.3 get 1.2.3
26-
VERSION=$(echo $GITHUB_REF | sed 's#.*/v##')
27-
PLACEHOLDER="__version__\ =\ \"0.0.0+dev0\""
28-
grep "$PLACEHOLDER" "pandera/version.py"
29-
sed -i "s/$PLACEHOLDER/__version__ = \"$VERSION\"/g" "pandera/version.py"
24+
pip install build twine
25+
- name: Build wheel and sdist
26+
run: python -m build
3027
shell: bash
3128
- name: Build and publish
32-
env:
33-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
34-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
35-
run: |
36-
python setup.py sdist bdist_wheel
37-
twine upload dist/*
29+
run: ls -la .
30+
# - name: Build and publish
31+
# env:
32+
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
34+
# run: twine upload dist/*

0 commit comments

Comments
 (0)