Skip to content

Commit

Permalink
Merge pull request #1301 from Sage-Bionetworks/develop
Browse files Browse the repository at this point in the history
Fix for publish workflow
  • Loading branch information
andrewelamb authored Sep 22, 2023
2 parents 5bedac0 + cd66634 commit 6eb54b5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
pypi_release:
runs-on: ubuntu-latest
env:
POETRY_VERSION: 1.2.0
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
steps:
#----------------------------------------------
Expand All @@ -20,15 +22,16 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

#----------------------------------------------
# install & configure poetry
# install & configure poetry
#----------------------------------------------
- name: Install Poetry
uses: snok/[email protected]
with:
virtualenvs-create: true
virtualenvs-in-project: true
run: |
curl -sSL https://install.python-poetry.org \
| python3 - --version ${{ env.POETRY_VERSION }};
poetry config virtualenvs.create true;
poetry config virtualenvs.in-project true;
#----------------------------------------------
# load cached venv if cache exists
Expand Down

0 comments on commit 6eb54b5

Please sign in to comment.