Skip to content

Commit

Permalink
Fix publish workflow (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
delta003 authored Sep 7, 2023
1 parent 2eb546a commit 80a4163
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
with:
path: ~/.local
key: poetry-${{ runner.os }}-${{ env.POETRY_VERSION }}-${{ steps.setup-python.outputs.python-version }}
- name: Expect Poetry cached
id: expect-cached-poetry
- name: Install Poetry
id: install-poetry
if: steps.cached-poetry.outputs.cache-hit != 'true'
run: echo "Expected cached Poetry installation, but it was not found." && exit 1
uses: snok/install-poetry@v1
with:
version: ${{ env.POETRY_VERSION }}
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Poetry git plugin
run: poetry self add poetry-git-version-plugin
- name: Load cached venv
Expand All @@ -43,9 +48,6 @@ jobs:
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
- name: Expect environment cached
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: echo "Expected cached environment, but it was not found." && exit 1

- name: Poetry Build
run: poetry build -v
Expand Down

0 comments on commit 80a4163

Please sign in to comment.