File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Test
3
3
on :
4
4
push :
5
5
branches : [main]
6
+ tags :
7
+ - " v*" # Push events to matching v*, i.e. v1.0, v20.15.10
6
8
pull_request :
7
9
branches : [main]
8
10
76
78
with :
77
79
name : coverage
78
80
verbose : true
81
+ deploy :
82
+ # this will run when you have tagged a commit, starting with "v*"
83
+ # and requires that you have put your twine API key in your
84
+ # github secrets (see readme for details)
85
+ needs : [test]
86
+ runs-on : ubuntu-latest
87
+ if : contains(github.ref, 'tags')
88
+ steps :
89
+ - name : Checkout code
90
+ uses : actions/checkout@v3
91
+
92
+ - name : Set up Python 3.10
93
+ uses : actions/setup-python@v4
94
+ with :
95
+ python-version : " 3.10"
96
+
97
+ - name : Install hatch
98
+ run : pip install hatch
99
+
100
+ - name : Build project for distribution
101
+ run : hatch build
102
+
103
+ - name : Publish a Python distribution to PyPI
104
+ uses : pypa/gh-action-pypi-publish@release/v1
105
+ with :
106
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments