Skip to content

Commit

Permalink
Remove token from Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolargo committed Oct 20, 2024
1 parent e02d950 commit 73fd34e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,21 @@ jobs:
- name: Publish distribution package to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# user and password should be removed
# because Github action is a trusted publiser
# user: __token__
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
skip-existing: true

- name: Publish distribution package to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
# user and password should be removed (if it is ok on test.pypi)
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true

create_Docker_builds:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 73fd34e

Please sign in to comment.