Skip to content

Commit

Permalink
Update publish.yml (#13)
Browse files Browse the repository at this point in the history
* Update publish.yml

* Update publish.yml
  • Loading branch information
shenxianpeng authored Jun 4, 2023
1 parent a1c928b commit 3a09b3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*

0 comments on commit 3a09b3a

Please # to comment.