From 3a09b3abc73d742d7a83f46a34fe57deb7624a8f Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Sun, 4 Jun 2023 22:43:58 +0800 Subject: [PATCH] Update publish.yml (#13) * Update publish.yml * Update publish.yml --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d9ee1e..64d3eed 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,16 +36,16 @@ jobs: - name: Build wheel run: python -m pip wheel -w dist . - name: Check distribution - run: twine check dist/* + run: twine check dist/cpp_linter_hooks* - name: Publish package (to TestPyPI) if: github.event_name == 'workflow_dispatch' && github.repository == 'cpp-linter/cpp-linter-hooks' env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }} - run: twine upload --repository testpypi dist/* + run: twine upload --repository testpypi dist/cpp_linter_hooks* - name: Publish package (to PyPI) if: github.event_name != 'workflow_dispatch' && github.repository == 'cpp-linter/cpp-linter-hooks' env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: twine upload dist/* + run: twine upload dist/cpp_linter_hooks*