Skip to content

Commit

Permalink
Fix release action
Browse files Browse the repository at this point in the history
  • Loading branch information
vemel committed Nov 14, 2023
1 parent 529bf10 commit a7dda80
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -30,7 +32,7 @@ jobs:
return context.ref.split('/').pop()
- name: Install dependencies
run: |
python -m pip install -U poetry pip wheel
python -m pip install -U poetry pip
poetry config virtualenvs.create false
poetry install -n
- name: Bump version
Expand All @@ -50,7 +52,6 @@ jobs:
VERSION: ${{ steps.version.outputs.result }}
run: |
git add pyproject.toml
git add setup.cfg
git commit -m "Release ${VERSION}"
git push
- name: Publish to PyPI
Expand All @@ -60,4 +61,4 @@ jobs:
run: |
poetry run pip install -U twine wheel
poetry build
twine upload --non-interactive dist/*
poetry run twine upload --non-interactive dist/*

0 comments on commit a7dda80

Please sign in to comment.