From 3486e663043ae737265877aa1c06f27c51a17fd9 Mon Sep 17 00:00:00 2001 From: vgp57214_gsk Date: Mon, 12 Feb 2024 08:05:41 +0100 Subject: [PATCH] new gh action to publish to pypi --- .github/workflows/cd.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0a38be6..483278d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -8,10 +8,18 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: '3.9' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build - name: Build and publish to pypi - uses: JRubics/poetry-publish@v1.17 + uses: pypa/gh-action-pypi-publish@release/v1 with: - pypi_token: ${{ secrets.PROD_PYPI}} - plugins: "poetry-dynamic-versioning[plugin]" + password: ${{ secrets.PROD_PYPI}}