Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Oct 30, 2024
1 parent db22bf6 commit 0d76c3d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish package
# Publish to PyPI when new release on GitHub, if tests pass
on:
release:
types: [created]
workflow_dispatch:
# Manual trigger in case the release needs to be rerun

jobs:

publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pyodm
permissions:
id-token: write
steps:
- uses: actions/checkout@v4

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 0d76c3d

Please sign in to comment.