Skip to content

Commit a7c89ee

Browse files
committed
Version 1.6.17
QoL: Format code with `black` Github Actions: Build and upload on Windows runner
1 parent 014e337 commit a7c89ee

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build-and-publish.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929
- name: Build package
3030
run: python -m build --no-isolation
3131
- name: Publish package
32-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
33-
with:
34-
user: __token__
35-
password: ${{ secrets.PYPI_API_TOKEN_2 }}
32+
env:
33+
TWINE_USERNAME: __token__
34+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN_2 }}
35+
run: |
36+
twine upload ./dist/*.whl --skip-existing
37+
twine upload ./dist/*.tar.gz --skip-existing
3638
- name: Build Windows executables
3739
run: |
3840
pyinstaller -F -i NONE pyncm/__main__.py --name pyncm

0 commit comments

Comments
 (0)