File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Push to pypi
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v*
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v3
13
+ - name : Set up Python
14
+ uses : actions/setup-python@v4
15
+ with :
16
+ python-version : " 3.10"
17
+ - name : Install dependencies
18
+ run : |
19
+ python -m pip install --upgrade pip
20
+ pip install -r requirements.txt
21
+ - name : Build package
22
+ run : ./scripts/package
23
+ - name : Publish package
24
+ run : |
25
+ twine upload dist/*
26
+ env :
27
+ TWINE_USERNAME : __token__
28
+ TWINE_PASSWORD : ${{ secrets.PYPI_KEY }}
Original file line number Diff line number Diff line change 41
41
- uses : actions/checkout@v4
42
42
with :
43
43
fetch-depth : 1
44
- ref : ${{ github.event.pull_request.head.sha }}
44
+ ref : ${{ github.event.pull_request.head.sha }}
45
45
- uses : actions/setup-python@v5
46
46
with :
47
47
python-version : " 3.10"
You can’t perform that action at this time.
0 commit comments