Skip to content

Commit

Permalink
Merge pull request #507 from strictdoc-project/poetry-update
Browse files Browse the repository at this point in the history
CI: fix broken Poetry installation when Python 3.10 is used
  • Loading branch information
stanislaw authored Oct 21, 2021
2 parents 474ef14 + 9e6c1e5 commit b95306f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

env:
POETRY_VERSION: 1.2.0a2

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -13,11 +16,13 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
curl -fsS -o install-poetry.py \
"https://raw.githubusercontent.com/python-poetry/poetry/$POETRY_VERSION/install-poetry.py"
python install-poetry.py -y
echo "PATH=$HOME/.poetry/bin:$PATH" >> $GITHUB_ENV
- name: Build and publish
run: |
Expand Down

0 comments on commit b95306f

Please sign in to comment.