Skip to content

Commit

Permalink
refactor(ci): convert to trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyb824 committed Aug 21, 2023
1 parent 3e5ec68 commit e1a2a78
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
needs: Test
environment:
name: production
url: https://pypi.org/project/python-sysinformer/
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
name: Release
Expand Down Expand Up @@ -115,10 +116,6 @@ jobs:
id: test_publish
if: steps.release.outcome == 'success'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/

- name: Test install from TestPyPI
if: steps.test_publish.outcome == 'success'
Expand Down

0 comments on commit e1a2a78

Please sign in to comment.