Skip to content

Commit e144fb8

Browse files
authored
Fix release to PyPI flow (#221)
* remove broken action and use poetry version * update release drafter version
1 parent f60d46e commit e144fb8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ jobs:
1818
TAG: ${{ github.event.release.tag_name }}
1919
run: echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT
2020

21-
- name: Set the version for publishing
22-
uses: ciiiii/toml-editor@1.0.0
23-
with:
24-
file: "pyproject.toml"
25-
key: "tool.poetry.version"
26-
value: "${{ steps.get_version.outputs.VERSION }}"
27-
2821
- name: Set up Python 3.9
2922
uses: actions/setup-python@v3
3023
with:
@@ -54,6 +47,7 @@ jobs:
5447
poetry config virtualenvs.create false
5548
poetry export --dev --without-hashes -o requirements.txt
5649
pip install -r requirements.txt
50+
poetry version ${{ steps.get_version.outputs.VERSION }}
5751
poetry install
5852
5953
- name: Publish to PyPI

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
# Drafts your next Release notes as Pull Requests are merged into "master"
14-
- uses: release-drafter/release-drafter@v5
14+
- uses: release-drafter/release-drafter@v6
1515
with:
1616
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
1717
config-name: release-drafter-config.yml

0 commit comments

Comments
 (0)