Skip to content

Commit

Permalink
ci: switch to PyPI trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelarogbonlo committed Jan 11, 2025
1 parent 8af1107 commit f58688f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Publish to PyPI

on:
release:
types: [created]
push:
tags:
- 'v*'

jobs:
pypi-publish:
Expand All @@ -24,5 +25,8 @@ jobs:
- name: Build package
run: python -m build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
verbose: true

0 comments on commit f58688f

Please sign in to comment.