From e9d23c9b9838f5acbf39b8027f47f4a540d87c1f Mon Sep 17 00:00:00 2001 From: Will Dean Date: Mon, 29 Jul 2024 09:09:49 +0200 Subject: [PATCH] setup release action --- .github/release.yml | 18 ++++++++++++++++++ .github/workflows/publish.yml | 14 ++++++++++++++ lyft_bikes/__init__.py | 2 +- 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/release.yml create mode 100644 .github/workflows/publish.yml diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 0000000..a4d8681 --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,18 @@ +# This file has been mostly taken verbatim from https://github.com/pymc-devs/pymc/blob/main/.github/release.yml +changelog: + exclude: + labels: + - no releasenotes + categories: + - title: New Features 🎉 + labels: + - enhancement + - title: Bugfixes 🐛 + labels: + - bug + - title: Documentation 📖 + labels: + - docs + - title: Maintenance 🔧 + labels: + - "*" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..e691f77 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,14 @@ +name: Python package +on: + push: + tags: + - "v*.*.*" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and publish to pypi + uses: JRubics/poetry-publish@v1.17 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }} diff --git a/lyft_bikes/__init__.py b/lyft_bikes/__init__.py index 121e49d..2dc8686 100644 --- a/lyft_bikes/__init__.py +++ b/lyft_bikes/__init__.py @@ -11,7 +11,7 @@ from lyft_bikes.geo import read_fee_boundary -__version__ = "0.1.0" +__version__ = "0.1.1" def chicago_only_error(func) -> None: