From dc8cc3a107a35a4d7f0da3d845917fb8cbbe96ac Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Sun, 4 Jun 2023 22:38:53 +0800 Subject: [PATCH 1/2] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2d9ee1e..0221e9c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ 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: From d921a9c61aaada9d0934c023467c27ce407e1aa1 Mon Sep 17 00:00:00 2001 From: Peter Shen Date: Sun, 4 Jun 2023 22:42:09 +0800 Subject: [PATCH 2/2] Update publish.yml --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0221e9c..64d3eed 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,10 +42,10 @@ jobs: 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*