Skip to content

Commit 206e16b

Browse files
authored
Merge pull request #169 from SpikeInterface/update-publish-action
Update publish action
2 parents a24f3c1 + 9bc8470 commit 206e16b

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/python-publish.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,20 @@ jobs:
1717
- uses: actions/checkout@v2
1818
- uses: s-weigand/setup-conda@v1
1919
with:
20-
python-version: "3.9"
20+
python-version: "3.10"
2121
- name: Which python
2222
run: |
2323
conda --version
2424
- name: Install dependencies
2525
run: |
2626
pip install .[templates,test]
2727
pip install setuptools wheel twine
28-
- name: Test with pytest and build coverage report
29-
run: |
30-
pytest -s
31-
- name: Publish on PyPI
28+
- name: Package and Upload
3229
env:
33-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
34-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
30+
STACKMANAGER_VERSION: ${{ github.event.release.tag_name }}
31+
TWINE_USERNAME: __token__
32+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3533
run: |
36-
python setup.py sdist bdist_wheel
34+
python -m build --sdist --wheel
3735
twine upload dist/*
36+

0 commit comments

Comments
 (0)