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 1
1
name : Pypi
2
2
# upload package to Pypi
3
- on :
4
- push :
5
- tags :
6
- - ' **-release'
3
+
4
+ on : [workflow_dispatch]
7
5
8
6
env :
9
7
PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
21
19
with :
22
20
python-version : 3.7
23
21
24
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v3
25
23
with :
26
24
repository : pinecone-io/pinecone-python-client
27
25
ref : ' '
34
32
- name : Build Python client
35
33
run : make package
36
34
35
+ - name : Set Version
36
+ run : echo "VERSION=$(cat pinecone/__version__ )" >> $GITHUB_ENV
37
+
37
38
- 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 1
1
grpcio==1.37.1
2
2
grpc-gateway-protoc-gen-openapiv2==0.1.0
3
3
googleapis-common-protos==1.53.0
4
- numpy>=1.18.5,<1.20.0
5
4
lz4==3.1.3
6
5
protobuf==3.13.0
You can’t perform that action at this time.
0 commit comments