Skip to content

Commit

Permalink
add .github/workflows/pypi-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jun 17, 2024
1 parent b41161d commit 2f88b86
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: pypi-publish

on:
push:
branches: ["pypi-release-action"]
pull_request:
schedule:
- cron: "33 1 * * 3"

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyglossary
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
with:
skip-existing: true
verbose: true
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://pypi.org/legacy/

0 comments on commit 2f88b86

Please sign in to comment.