From 076bad5b3900ee84af0db52228768df7c27db202 Mon Sep 17 00:00:00 2001 From: Elena Kolevska Date: Tue, 26 Nov 2024 01:47:35 +0000 Subject: [PATCH] Adds build package (#2) Signed-off-by: Elena Kolevska --- .github/workflows/pr-validation.yml | 42 ++++++++++++++--------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 59d47cb..d6a0c37 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -37,24 +37,24 @@ jobs: run: | pytest -m "not e2e" --verbose publish: - needs: build - if: startswith(github.ref, 'refs/tags/v') - runs-on: ubuntu-latest - env: - TWINE_USERNAME: "__token__" - steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.11 - uses: actions/setup-python@v5 - with: - python-version: 3.11 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish Dapr Python SDK - env: - TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }} - run: | - python -m build - twine upload dist/* \ No newline at end of file + needs: build + if: startswith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + env: + TWINE_USERNAME: "__token__" + steps: + - uses: actions/checkout@v4 + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: 3.11 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine build + - name: Build and publish Dapr Python SDK + env: + TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }} + run: | + python -m build + twine upload dist/*