diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b7a704b..6eba138 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -20,20 +20,14 @@ jobs: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v3 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - - name: Build package - run: python -m build - - name: Publish package - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + steps: + - name: Checkout Repository # You must checkout your repository first. + uses: actions/checkout@v3 + + - name: Publish Package + uses: celsiusnarhwal/poetry-publish@v2 + with: + python-version: 3.12 + poetry-version: 1.3.1 + token: ${{ secrets.PYPI_TOKEN }} + build: true