Skip to content

Commit 92f0222

Browse files
authored
Merge pull request #65 from pinecone-io/update-workflow
remove numpy, update release workflow
2 parents 1a4e3c0 + 85d81a0 commit 92f0222

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Pypi
22
# upload package to Pypi
3-
on:
4-
push:
5-
tags:
6-
- '**-release'
3+
4+
on: [workflow_dispatch]
75

86
env:
97
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
@@ -21,7 +19,7 @@ jobs:
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: ''
@@ -34,5 +32,24 @@ jobs:
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 }}

requirements-grpc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
grpcio==1.37.1
22
grpc-gateway-protoc-gen-openapiv2==0.1.0
33
googleapis-common-protos==1.53.0
4-
numpy>=1.18.5,<1.20.0
54
lz4==3.1.3
65
protobuf==3.13.0

0 commit comments

Comments
 (0)