File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
pull_request :
6
6
release :
7
- types : [created]
7
+ types : [ created ]
8
8
9
9
jobs :
10
10
test :
11
11
strategy :
12
12
fail-fast : false
13
13
matrix :
14
- os : [ubuntu-latest]
14
+ os : [ ubuntu-latest ]
15
15
python-version :
16
16
[
17
17
" 3.8" ,
38
38
39
39
- name : Test with unittest
40
40
run : python -m unittest
41
+
42
+ deploy :
43
+ needs : test
44
+ runs-on : ubuntu-latest
45
+ if : github.event_name == 'release' && github.event.action == 'created'
46
+ permissions :
47
+ id-token : write
48
+ steps :
49
+ - uses : actions/checkout@v3
50
+
51
+ - name : Install poetry
52
+ run : pipx install poetry
53
+
54
+ - name : Build Packages
55
+ run : poetry build
56
+
57
+ - name : Publish package distributions to PyPI
58
+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 11
11
- uses : actions/checkout@v3
12
12
- uses : actions/setup-python@v4
13
13
with :
14
- python-version : ' 3.10 '
15
- - uses : pre-commit/action@v3.0.0
14
+ python-version : ' 3.13 '
15
+ - uses : pre-commit/action@v3.0.1
You can’t perform that action at this time.
0 commit comments