-
-
Notifications
You must be signed in to change notification settings - Fork 23
Add GitHub Actions workflow for PyPI publishing #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Continuous Delivery | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/mbdata | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- uses: snok/install-poetry@v1 | ||
with: | ||
plugins: | | ||
poetry-dynamic-versioning[plugin] | ||
yvanzo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- run: poetry build | ||
- uses: pypa/gh-action-pypi-publish@release/v1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Copyright (C) 2013 Lukas Lalinsky | ||
# Distributed under the MIT license, see the LICENSE file for details. | ||
|
||
__version__ = "30.0.0" | ||
# automatically filled in and updated by poetry-dynamic-versioning plugin | ||
# in distributions | ||
__version__ = "0.0.0" | ||
Comment on lines
+4
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add references to the related docs at the bottom of your first commit message. Is it the one below? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the general pyproject.toml reference yes but this change is from poetry and poetry-dynamic-versioning specific. If we were using setuptools instead of poetry, this would be done differently. Basically, poetry-dynamic-versioning plugin during build time substitutes the |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.