File tree 2 files changed +29
-15
lines changed
2 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 44
44
pip install tox tox-gh-actions
45
45
- name : Test with tox
46
46
run : tox
47
-
48
- coverage :
49
- name : Create coverage badge
50
- needs : test
51
- runs-on : ubuntu-latest
52
- steps :
53
- - name : Coverage Badge
54
- uses : codecov/codecov-action@v3
55
-
56
- deploy :
57
- name : Deploy python package
58
- needs : test
59
- runs-on : ubuntu-latest
60
- steps :
61
- - run : echo "Deploying .."
Original file line number Diff line number Diff line change
1
+ name : Publish to Pypi
2
+ on :
3
+ push :
4
+ tags :
5
+ - " v[0-9]+.[0-9]+.[0-9]+" # regex to match semantic versioning tags
6
+
7
+ jobs :
8
+ tests :
9
+ uses : ./.github/workflows/main.yml
10
+ publish :
11
+ name : publish
12
+ needs : [main] # require main to pass before publish runs
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout source
16
+ uses : actions/checkout@v3
17
+ - name : Set up Python 3.10
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : 3.10
21
+ - name : Build package
22
+ run : |
23
+ python -m pip install -U pip build
24
+ python -m build
25
+ - name : Publish
26
+
27
+ with :
28
+ user : __token__
29
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments