Skip to content

Commit ffe0a19

Browse files
committed
bump version and add dlt pypi
1 parent ce302d6 commit ffe0a19

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,17 @@ jobs:
149149
[[ "${GITHUB_REF#refs/tags/}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
150150
|| echo ::set-output name=prerelease::true
151151
152-
# - name: Create Release
153-
# uses: ncipollo/release-action@v1
154-
# with:
155-
# artifacts: "dist/*"
156-
# token: ${{ secrets.GITHUB_TOKEN }}
157-
# draft: false
158-
# prerelease: steps.check-version.outputs.prerelease == 'true'
159-
160-
# - name: Publish to PyPI
161-
# env:
162-
# POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
163-
# run: |
164-
# poetry publish
152+
- name: Create Release
153+
uses: ncipollo/release-action@v1
154+
with:
155+
artifacts: "dist/*"
156+
token: ${{ secrets.GITHUB_TOKEN }}
157+
draft: false
158+
prerelease: steps.check-version.outputs.prerelease == 'true'
159+
160+
- name: Publish to PyPI
161+
env:
162+
DLT_PYPI_PASSWORD: ${{ secrets.DLT_PYPI_PASSWORD }}
163+
DLT_PYPI_USERNAME: ${{ secrets.DLT_PYPI_USERNAME }}
164+
run: |
165+
poetry publish --repository dlt-pypi --username $DLT_PYPI_PASSWORD --password $DLT_PYPI_USERNAME

pyproject.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dlt-pendulum"
3-
version = "3.0.1"
3+
version = "3.0.1a1"
44
description = "Python datetimes made easy"
55
readme = "README.rst"
66
requires-python = ">=3.9"
@@ -32,7 +32,7 @@ Repository = "https://github.com/sdispater/pendulum"
3232

3333
[tool.poetry]
3434
name = "dlt-pendulum"
35-
version = "3.0.1"
35+
version = "3.0.1a1"
3636
description = "Python datetimes made easy"
3737
authors = ["Sébastien Eustace <sebastien@eustace.io>"]
3838
license = "MIT"
@@ -86,6 +86,11 @@ maturin = ">=1.0,<2.0"
8686
[tool.poetry.extras]
8787
test = ["time-machine"]
8888

89+
[[tool.poetry.source]]
90+
name = "dlt-pypi"
91+
url = "https://pypi.dlthub.com"
92+
priority = "primary"
93+
8994
[tool.maturin]
9095
module-name = "pendulum._pendulum"
9196
features = ["pyo3/extension-module"]

0 commit comments

Comments
 (0)