File tree 1 file changed +5
-11
lines changed
1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change 1
1
name : Test and Publish to PyPI
2
2
3
3
on :
4
- workflow_dispatch :
5
- inputs :
6
- tag :
7
- description : ' Tag to release (must start with v*)'
8
- required : true
4
+ push :
5
+ tags :
6
+ - ' v*' # triggers only when pushing tags starting with 'v'
9
7
10
8
jobs :
11
9
test :
@@ -14,13 +12,11 @@ jobs:
14
12
steps :
15
13
- name : Checkout code
16
14
uses : actions/checkout@v4
17
- with :
18
- ref : ${{ github.event.inputs.tag }}
19
15
20
16
- name : Set up Python
21
17
uses : actions/setup-python@v5
22
18
with :
23
- python-version : ' 3.11 '
19
+ python-version : ' 3.12 '
24
20
25
21
- name : Install Poetry and dependencies
26
22
run : |
@@ -38,13 +34,11 @@ jobs:
38
34
steps :
39
35
- name : Checkout code
40
36
uses : actions/checkout@v4
41
- with :
42
- ref : ${{ github.event.inputs.tag }}
43
37
44
38
- name : Set up Python
45
39
uses : actions/setup-python@v5
46
40
with :
47
- python-version : ' 3.11 '
41
+ python-version : ' 3.12 '
48
42
49
43
- name : Install Poetry and dependencies
50
44
run : |
You can’t perform that action at this time.
0 commit comments