File tree Expand file tree Collapse file tree 2 files changed +23
-7
lines changed
Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 11name : Pypi
22# upload package to Pypi
3- on :
4- push :
5- tags :
6- - ' **-release'
3+
4+ on : [workflow_dispatch]
75
86env :
97 PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
2119 with :
2220 python-version : 3.7
2321
24- - uses : actions/checkout@v2
22+ - uses : actions/checkout@v3
2523 with :
2624 repository : pinecone-io/pinecone-python-client
2725 ref : ' '
3432 - name : Build Python client
3533 run : make package
3634
35+ - name : Set Version
36+ run : echo "VERSION=$(cat pinecone/__version__ )" >> $GITHUB_ENV
37+
3738 - name : Upload Python client to Pypi
38- run : make upload PYPI_PASSWORD=${{ env.PYPI_PASSWORD }}
39+ run : make upload PYPI_PASSWORD=${{ env.PYPI_PASSWORD }}
40+
41+ - name : Create tag
42+ uses : actions/github-script@v5
43+ with :
44+ script : |
45+ github.rest.git.createRef({
46+ owner: context.repo.owner,
47+ repo: context.repo.repo,
48+ ref: 'refs/tags/${{ env.VERSION }}',
49+ sha: context.sha
50+ })
51+
52+ - name : Create a Release
53+ uses : elgohr/Github-Release-Action@v4
54+ with :
55+ title : Release ${{ env.VERSION }}
Original file line number Diff line number Diff line change 11grpcio==1.37.1
22grpc-gateway-protoc-gen-openapiv2==0.1.0
33googleapis-common-protos==1.53.0
4- numpy>=1.18.5,<1.20.0
54lz4==3.1.3
65protobuf==3.13.0
You can’t perform that action at this time.
0 commit comments