duckdb / dbt-duckdb

dbt (http://getdbt.com) adapter for DuckDB (http://duckdb.org)
Apache License 2.0
790 stars 70 forks source link

Add automated release pipeline #355

Closed guenp closed 3 months ago

guenp commented 3 months ago

See packaging guide for setup instructions on PyPI:

Go to https://pypi.org/manage/account/publishing/.

Fill in the name you wish to publish your new PyPI project under (the name value in your setup.cfg or pyproject.toml), the GitHub repository owner’s name (org or user), and repository name, and the name of the release workflow file under the .github/ folder, see Creating a workflow definition. Finally, add the name of the GitHub Environment (pypi) we’re going set up under your repository. Register the trusted publisher.

Your “pending” publisher is now ready for their first use and will create your project automatically once you use them for the first time.

This was tested on TestPyPI (see: https://test.pypi.org/project/dbt-duckdb/)

guenp commented 3 months ago

The pipeline currently triggers when you push a semver tag but still requires you to update the version manually, we can implement automated versioning e.g. with versioningit in a separate PR. Let me know what you think