Skip to content

Commit

Permalink
Fix release to PyPI flow (#221)
Browse files Browse the repository at this point in the history
* remove broken action and use poetry version

* update release drafter version
  • Loading branch information
GuyAv46 authored Feb 13, 2024
1 parent f60d46e commit e144fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ jobs:
TAG: ${{ github.event.release.tag_name }}
run: echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT

- name: Set the version for publishing
uses: ciiiii/[email protected]
with:
file: "pyproject.toml"
key: "tool.poetry.version"
value: "${{ steps.get_version.outputs.VERSION }}"

- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
Expand Down Expand Up @@ -54,6 +47,7 @@ jobs:
poetry config virtualenvs.create false
poetry export --dev --without-hashes -o requirements.txt
pip install -r requirements.txt
poetry version ${{ steps.get_version.outputs.VERSION }}
poetry install
- name: Publish to PyPI
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
- uses: release-drafter/release-drafter@v6
with:
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
config-name: release-drafter-config.yml
Expand Down

0 comments on commit e144fb8

Please sign in to comment.