Skip to content

Commit

Permalink
use poetry version tag for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mquinnfd committed Jul 5, 2024
1 parent eec7516 commit 91e7507
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: echo "TAG=${GITHUB_REF#refs/*/}" | tee -a $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
python -m poetry config virtualenvs.create false
python -m poetry self add "poetry-dynamic-versioning[plugin]"
- run: echo "TAG=$(poetry version -s)" | tee -a $GITHUB_ENV
- run: echo "BRANCH=$(git branch -a --contains ${{ env.TAG }} | grep -v HEAD | cut -d '/' -f3)" | tee -a $GITHUB_ENV
- uses: docker/login-action@v1
with:
Expand Down Expand Up @@ -172,7 +177,7 @@ jobs:
run: |
python -m poetry build
./rename-wheel.sh
echo "TAG=${GITHUB_REF#refs/*/}" | tee -a $GITHUB_ENV
echo "TAG=$(poetry version -s)" | tee -a $GITHUB_ENV
- name: Publish tagged version to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit 91e7507

Please sign in to comment.