File tree 1 file changed +12
-15
lines changed
1 file changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ name: Publish Python Package
3
3
on :
4
4
release :
5
5
types : [published]
6
+ push :
7
+ branches :
8
+ - update-publish-ci
6
9
7
10
jobs :
8
11
publish :
@@ -18,20 +21,14 @@ jobs:
18
21
- name : Install dependencies
19
22
run : |
20
23
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
30
27
shell : bash
31
28
- 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/*
You can’t perform that action at this time.
0 commit comments