diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 33d2074c..eccd9c91 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,11 +1,6 @@ name: Build Wheels for Python SDK on: - push: - branches: - # Release branches - - "sdk-core/*" - # Allow manual triggering of the workflow workflow_dispatch: inputs: build-wheels: @@ -47,4 +42,22 @@ jobs: - uses: actions/upload-artifact@v4 with: name: onepassword-sdk-${{ env.SDK_VERSION }}-${{ matrix.os }}-${{ strategy.job-index }} - path: ./wheelhouse/*.whl \ No newline at end of file + path: ./wheelhouse/*.whl + + build-sdist: + name: Build source distribution for Python SDK + runs-on: ubuntu-latest + needs: build_wheels + steps: + # Need to grab the SDK version for the wheel name + - name: Extract SDK Version + run: echo "SDK_VERSION=$(python -c 'import version; print(version.SDK_VERSION)')" >> $GITHUB_ENV + + - uses: actions/checkout@v4 + - name: Build source distribution + run: python -m build --sdist + + - uses: actions/upload-artifact@v4 + with: + name: onepassword-sdk-${{ env.SDK_VERSION }} + path: ./wheelhouse/*.tar.gz diff --git a/example/example.py b/example/example.py index 1f68dcbf..71090ffd 100644 --- a/example/example.py +++ b/example/example.py @@ -106,7 +106,7 @@ async def main(): ) print(code) # [developer-docs.sdk.python.resolve-totp-code]-end - + # hello # [developer-docs.sdk.python.get-totp-item-crud]-start # Fetch a totp code from the item for f in created_item.fields: