File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 6
6
workflow_dispatch :
7
7
8
8
jobs :
9
- # test: ## dont publish without passing test
10
9
publish :
10
+
11
11
runs-on : ubuntu-latest
12
- # needs: [test]
12
+
13
13
steps :
14
- - uses : actions/checkout@v2
14
+ - name : Checkout
15
+ uses : actions/checkout@v2
15
16
- name : Set up Python
16
17
uses : actions/setup-python@v2
17
18
with :
18
- python-version : ' 3.9'
19
- - uses : actions/cache@v2
20
- name : Configure pip caching
21
- with :
22
- path : ~/.cache/pip
23
- key : ${{ runner.os }}-publish-pip-${{ hashFiles('**/setup.py') }}
24
- restore-keys : |
25
- ${{ runner.os }}-publish-pip-
19
+ python-version : ' 3.x'
20
+ - name : Install dependencies
21
+ run : |
22
+ pip install setuptools
26
23
- name : Build package
27
24
env :
28
25
VERSION : ${{ github.event.release.tag_name }}
29
26
run : |
30
- pip install setuptools
31
27
python setup.py sdist
32
- rm dist/*.orig #clean sdist_upip noise
28
+ rm dist/*.orig # clean sdist_upip noise
33
29
- name : Publish to Test PyPI
34
30
uses : pypa/gh-action-pypi-publish@release/v1
35
31
with :
You can’t perform that action at this time.
0 commit comments