File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -48,32 +48,35 @@ jobs:
48
48
- uses : codecov/codecov-action@v1
49
49
if : ${{ always() }}
50
50
51
-
52
51
deploy :
53
52
needs : [test]
54
53
runs-on : ubuntu-latest
55
54
strategy :
56
55
matrix :
57
56
python-version : [3.9]
58
57
steps :
59
- - uses : actions/checkout@v2
58
+ - uses : actions/checkout@v3
60
59
with :
61
60
submodules : recursive
62
61
fetch-depth : 0
63
- - name : Set up Python ${{ matrix.python-version }}
64
- uses : actions/setup-python@v2
62
+ - name : Unset header
63
+ # checkout@v2 adds a header that makes branch protection report errors
64
+ # because the Github action bot is not a collaborator on the repo
65
+ run : git config --local --unset http.https://github.com/.extraheader
66
+ - name : Set up Python
67
+ uses : actions/setup-python@v3
65
68
with :
66
- python-version : ${{ matrix.python-version }}
69
+ python-version : ' 3.12 '
67
70
- name : Install build tools
68
- run : python -m pip install --upgrade pip setuptools wheel twine
71
+ run : python3 -m pip install --break-system-packages build twine
69
72
- name : Build source and wheel distributions
70
- run : python setup.py sdist bdist_wheel
73
+ run : python3 -m build .
71
74
- name : Check distributions
72
75
run : twine check dist/*
73
76
- uses : actions/upload-artifact@v4
74
77
with :
75
- name : distributions
76
- path : dist/
78
+ name : built
79
+ path : /dist
77
80
# Deploy on tags if PYPI_API_TOKEN is defined in the repository secrets.
78
81
# Secrets are not accessible in the if: condition [0], so set an output variable [1]
79
82
# [0] https://github.community/t/16928
You can’t perform that action at this time.
0 commit comments