Skip to content

Commit 7b6e73f

Browse files
committed
fix(CI): attempt to fix pypi publish
1 parent 9d57bd3 commit 7b6e73f

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,27 @@ on:
44
types: [published]
55

66
env:
7-
POETRY_VERSION: 1.3.0
7+
POETRY_VERSION: 1.3.1
88

99
jobs:
1010
pypi_release:
1111
name: Poetry Build and PyPI Publish
12-
runs-on: ubuntu-latest
12+
runs-on: ubuntu-20.04
1313
steps:
1414
- name: Checkout Code
1515
uses: actions/checkout@v2
1616
- name: Setup Python
1717
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.8
1820
- name: Install Poetry
1921
run: |
20-
pip install --upgrade pip
21-
pip install poetry==$POETRY_VERSION
22-
poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
23-
- name: Build package
24-
run: poetry install
22+
curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION
23+
curl -sSL https://install.python-poetry.org | POETRY_VERSION=$POETRY_VERSION python3 -
24+
- name: Install package
25+
run: |
26+
/root/.local/bin/poetry config virtualenvs.create false
27+
/root/.local/bin/poetry install
28+
/root/.local/bin/poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
2529
- name: Publish package
2630
run: poetry publish --build

0 commit comments

Comments
 (0)