Skip to content

Commit

Permalink
chore: Migrate to trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmacias95 committed Dec 4, 2024
1 parent 5717f41 commit 9bd44c1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/publishing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ on:
types: [published]

jobs:
deploy:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/vt-py
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -19,8 +25,5 @@ jobs:
pip install build
- name: Build package
run: python -m build
- name: Publish package
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 9bd44c1

Please sign in to comment.