File tree 1 file changed +14
-4
lines changed
1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build_and_deploy :
10
10
runs-on : ubuntu-latest
11
+ if : github.repository == 'python-graphblas/graphblas-algorithms'
11
12
defaults :
12
13
run :
13
14
shell : bash -l {0}
@@ -21,11 +22,20 @@ jobs:
21
22
with :
22
23
python-version : " 3.8"
23
24
- name : Install build dependencies
24
- run : python -m pip install setuptools wheel
25
- - name : Build wheel
26
- run : python setup.py sdist bdist_wheel
25
+ run : |
26
+ python -m pip install --upgrade pip
27
+ python -m pip install build twine
28
+ - name : Build wheel and sdist
29
+ run : python -m build --sdist --wheel
30
+ - uses : actions/upload-artifact@v3
31
+ with :
32
+ name : releases
33
+ path : dist
34
+ if-no-files-found : error
35
+ - name : Check with twine
36
+ run : python -m twine check --strict dist/*
27
37
- name : Publish to PyPI
28
- uses : pypa/gh-action-pypi-publish@master
38
+ uses : pypa/gh-action-pypi-publish@v1.6.4
29
39
with :
30
40
user : __token__
31
41
password : ${{ secrets.PYPI_TOKEN }}
You can’t perform that action at this time.
0 commit comments