File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 11name : Build Wheels for Python SDK
22
33on :
4+ push :
5+ branches :
6+ - sdk-core/*
47 workflow_dispatch :
58
69jobs :
710 build_wheels :
8- # if: github.event_name == 'workflow_dispatch'
11+ if : github.event_name == 'workflow_dispatch' && startsWith(github.ref, 'refs/heads/sdk-core/')
912 name : Build wheels for Python SDK on ${{ matrix.os }}
1013 runs-on : ${{ matrix.os }}
1114 strategy :
4548 runs-on : ubuntu-latest
4649 needs : build_wheels
4750 steps :
51+ # Need to grab the SDK version for the wheel name
52+ - name : Extract SDK Version
53+ run : echo "SDK_VERSION=$(python -c 'import version; print(version.SDK_VERSION)')" >> $GITHUB_ENV
54+
4855 - uses : actions/checkout@v4
4956 - name : Build source distribution
50- run : python setup.py sdist
57+ run : python -m build --sdist
58+
59+ - uses : actions/upload-artifact@v4
60+ with :
61+ name : onepassword-sdk-${{ env.SDK_VERSION }}
62+ path : ./wheelhouse/*.tar.gz
You can’t perform that action at this time.
0 commit comments