Skip to content

Commit

Permalink
Merge pull request #895 from AntonOsika/refactor-poetry
Browse files Browse the repository at this point in the history
fix: publish to PyPI with Poetry
  • Loading branch information
captivus authored Dec 9, 2023
2 parents 56c9e25 + 395af71 commit 5f95e51
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Update to use Poetry's cache
cache: 'poetry'
# Removed the cache line that was here

# Install Poetry and add it to PATH
# Install Poetry
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.local/bin" >> $GITHUB_PATH
# Add Poetry to PATH
- name: Add Poetry to PATH
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

# Cache Poetry's dependencies based on the lock file
- name: Set up Poetry cache
Expand Down Expand Up @@ -60,8 +62,7 @@ jobs:
permissions:
id-token: write
steps:
- name: Collect packages to release
uses: actions/download-artifact@v3
- uses: actions/download-artifact@v3
with:
name: package
path: dist/
Expand Down

0 comments on commit 5f95e51

Please sign in to comment.