Skip to content

Commit

Permalink
Replace release_to_pypi.yml with ci-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nilomr committed Nov 12, 2024
1 parent db6694f commit 587402a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 58 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# .github/workflows/ci-cd.yml
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
environment:
name: pypi
url: https://pypi.org/p/pykanto
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
58 changes: 0 additions & 58 deletions .github/workflows/release_to_pypi.yml

This file was deleted.

0 comments on commit 587402a

Please sign in to comment.