Skip to content

Commit

Permalink
install (or) load poetry from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ckeshava committed Oct 24, 2024
1 parent a6ffae5 commit c63b7e4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/publish_to_pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
name: Publish xrpl-py 🐍 distribution 📦 to PyPI
env:
POETRY_VERSION: 1.8.3

on: push
jobs:
Expand All @@ -12,6 +14,17 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Load cached .local
id: cache-poetry
uses: actions/cache@v3
with:
path: /home/runner/.local
key: dotlocal-${{ env.POETRY_VERSION }}
- name: Install poetry
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: |
curl -sSL https://install.python-poetry.org/ | python - --version ${{ env.POETRY_VERSION }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Build a binary wheel and a source tarball
run: poetry build
- name: Store the distribution packages
Expand Down

0 comments on commit c63b7e4

Please sign in to comment.