File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 44 types : [published]
55
66env :
7- POETRY_VERSION : 1.3.0
7+ POETRY_VERSION : 1.3.1
88
99jobs :
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
You can’t perform that action at this time.
0 commit comments