Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/alpha-release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PyPI Prerelease
name: 'PyPI Release: Pre-Release (pinecone-client)'

on:
workflow_dispatch:
Expand Down
48 changes: 46 additions & 2 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: 'PyPI Release: Nightly (pinecone-client-nightly)'

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

jobs:
run-tests:
Expand All @@ -13,5 +15,47 @@ jobs:
name: pypi-nightly
runs-on: ubuntu-latest
steps:
- name: greeting
run: echo "Hello World"
- name: Checkout
uses: actions/checkout@v3

- name: Get recent changes
id: list-commits
run: |
recentCommits=$(git log --since=yesterday --oneline)
echo "commits=$recentCommits" >> "$GITHUB_OUTPUT"

- name: Abort if no recent changes
if: steps.list-commits.outputs.commits == ''
uses: andymckay/[email protected]

- name: Set dev version
id: version
run: |
versionFile="pinecone/__version__"
currentDate=$(date +%Y%m%d%H%M%S)
versionNumber=$(cat $versionFile)
devVersion="${versionNumber}.dev${currentDate}"
echo "$devVersion" > $versionFile

- name: Adjust module name
run: |
sed -i 's/pinecone-client/pinecone-client-nightly/g' setup.py

- name: Update README
run: |
echo "This is a nightly developer build of the Pinecone Python client. It is not intended for production use." > README.md

- uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Build Python client
run: make package

- name: Upload Python client to PyPI
id: pypi_upload
env:
TWINE_REPOSITORY: pypi
PYPI_USERNAME: ${{ secrets.PROD_PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PROD_PYPI_PASSWORD }}
run: make upload
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PyPI Prerelease
name: Publish to PyPI

on:
workflow_call:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PyPI Release
name: 'PyPI Release: Production (pinecone-client)'

on:
workflow_dispatch:
Expand Down