File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- name : Python Package Tests
1
+ name : Python Package Tests and Deploy
2
2
3
3
on :
4
4
push :
5
5
branches : [ master ]
6
6
pull_request :
7
7
branches : [ master ]
8
+ release :
9
+ types : [published]
10
+ workflow_dispatch :
8
11
9
12
jobs :
10
13
build-wheel :
36
39
with :
37
40
name : gridtools-cpp-wheel
38
41
path : .python_package/.nox/.cache/dist/gridtools_cpp-*.whl
42
+ - name : Publish distribution to Test PyPI
43
+ if : ${{ github.event_name == 'release' }}
44
+ uses : pypa/gh-action-pypi-publish@release/v1
45
+ with :
46
+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
47
+ repository_url : https://test.pypi.org/legacy/
48
+ packages-dir : .python_package/.nox/.cache/dist
49
+ - name : Publish distribution to PyPI
50
+ if : ${{ github.event_name == 'workflow_dispatch' }}
51
+ uses : pypa/gh-action-pypi-publish@release/v1
52
+ with :
53
+ password : ${{ secrets.PYPI_API_TOKEN }}
54
+ packages-dir : .python_package/.nox/.cache/dist
39
55
40
56
test-wheel :
41
57
needs : build-wheel
You can’t perform that action at this time.
0 commit comments