diff --git a/.github/workflows/pypi_publish.yml b/.github/workflows/pypi_publish.yml index bd65d62..be6fe0f 100644 --- a/.github/workflows/pypi_publish.yml +++ b/.github/workflows/pypi_publish.yml @@ -2,24 +2,24 @@ name: PyPi Publish on: release: types: - - published + - published jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - name: Install Poetry - run: pipx install poetry - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: "3.12" - cache: "poetry" - - name: Install Dependencies - run: | - poetry install - - name: Add pypi token to Poetry - run: | - poetry config pypi-token.pypi {{ "${{ secrets.PYPI_API_KEY }}" }} - - name: Publish package - run: poetry publish --build + - uses: actions/checkout@v4 + - name: Install Poetry + run: pipx install poetry + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + cache: "poetry" + - name: Install Dependencies + run: | + poetry install + - name: Add pypi token to Poetry + run: | + poetry config pypi-token.pypi ${{ secrets.PYPI_API_KEY }} + - name: Publish package + run: poetry publish --build