Skip to content

Commit

Permalink
fix(CI): attempt to fix pypi publish
Browse files Browse the repository at this point in the history
  • Loading branch information
JulesBelveze committed Jun 6, 2023
1 parent 9d57bd3 commit 7b6e73f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@ on:
types: [published]

env:
POETRY_VERSION: 1.3.0
POETRY_VERSION: 1.3.1

jobs:
pypi_release:
name: Poetry Build and PyPI Publish
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Poetry
run: |
pip install --upgrade pip
pip install poetry==$POETRY_VERSION
poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
- name: Build package
run: poetry install
curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION
curl -sSL https://install.python-poetry.org | POETRY_VERSION=$POETRY_VERSION python3 -
- name: Install package
run: |
/root/.local/bin/poetry config virtualenvs.create false
/root/.local/bin/poetry install
/root/.local/bin/poetry config pypi-token.pypi "${{ secrets.PYPI_API_KEY }}"
- name: Publish package
run: poetry publish --build

0 comments on commit 7b6e73f

Please sign in to comment.