Skip to content

Commit

Permalink
FIX: install poetry-dynamic-versioning via pipx
Browse files Browse the repository at this point in the history
This fixes the `0.0.0` version issue on GitHub Actions.

See: mtkennerly/poetry-dynamic-versioning#78 (comment)
  • Loading branch information
eigenein committed Feb 2, 2023
1 parent 76ccd79 commit 7f7d504
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ jobs:
with:
fetch-depth: 0

- name: "📥 Install Poetry"
run: pipx install poetry
- name: "✨ Install Poetry"
run: |
pipx install poetry
pipx inject poetry poetry-dynamic-versioning
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:
FORCE_COLOR: 1

jobs:
deploy:
publish:
runs-on: ubuntu-latest

steps:
Expand All @@ -32,8 +32,10 @@ jobs:
release_name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changelog }}

- name: "📥 Install Poetry"
run: pipx install poetry
- name: "✨ Install Poetry"
run: |
pipx install poetry
pipx inject poetry poetry-dynamic-versioning
- name: 📦 Build package
run: poetry build --ansi
Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7f7d504

Please sign in to comment.