Skip to content

Commit 5b2d05b

Browse files
committed
clean up publish workflow a little
1 parent 8fa999c commit 5b2d05b

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,26 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
#test: ## dont publish without passing test
109
publish:
10+
1111
runs-on: ubuntu-latest
12-
#needs: [test]
12+
1313
steps:
14-
- uses: actions/checkout@v2
14+
- name: Checkout
15+
uses: actions/checkout@v2
1516
- name: Set up Python
1617
uses: actions/setup-python@v2
1718
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
2623
- name: Build package
2724
env:
2825
VERSION: ${{ github.event.release.tag_name }}
2926
run: |
30-
pip install setuptools
3127
python setup.py sdist
32-
rm dist/*.orig #clean sdist_upip noise
28+
rm dist/*.orig # clean sdist_upip noise
3329
- name: Publish to Test PyPI
3430
uses: pypa/gh-action-pypi-publish@release/v1
3531
with:

0 commit comments

Comments
 (0)