Skip to content

Commit

Permalink
TEMP! try to make release workflow push to branch
Browse files Browse the repository at this point in the history
  • Loading branch information
igiloh-pinecone committed Nov 15, 2023
1 parent 37b9dcd commit f23a066
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 23 deletions.
50 changes: 28 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: release/0.2.0
token: ${{ secrets.VERSION_BUMP_PAT }}

- name: Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -80,6 +83,9 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v3
with:
ref: release/0.2.0
token: ${{ secrets.VERSION_BUMP_PAT }}

- name: Set up Python
uses: actions/setup-python@v4
Expand Down Expand Up @@ -119,25 +125,25 @@ jobs:
git checkout -b release/$(poetry version -s)
git push origin release/$(poetry version -s)
- name: Create GH release
uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: V${{ needs.build.outputs.new_version }}
name: ${{ needs.build.outputs.new_version }}
artifacts: "dist/*"
bodyFile: "CHANGELOG.md"

- name: Publish to test pypi
if: ${{ inputs.useTestPyPI == true }}
run: |
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_TOKEN }}
poetry publish -r testpypi
- name: Publish to pypi
if: ${{ inputs.useTestPyPI == false }}
run: |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
poetry publish
# - name: Create GH release
# uses: ncipollo/release-action@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag: V${{ needs.build.outputs.new_version }}
# name: ${{ needs.build.outputs.new_version }}
# artifacts: "dist/*"
# bodyFile: "CHANGELOG.md"
#
# - name: Publish to test pypi
# if: ${{ inputs.useTestPyPI == true }}
# run: |
# poetry config repositories.testpypi https://test.pypi.org/legacy/
# poetry config pypi-token.testpypi ${{ secrets.TEST_PYPI_TOKEN }}
# poetry publish -r testpypi
#
# - name: Publish to pypi
# if: ${{ inputs.useTestPyPI == false }}
# run: |
# poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
# poetry publish
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "canopy-sdk"
version = "0.2.0"
version = "0.1.4"
description = "Retrieval Augmented Generation (RAG) framework and context engine powered by Pinecone"
authors = ["Relevance Team <relevance@pinecone.io>"]
readme = "README.md"
Expand Down

0 comments on commit f23a066

Please sign in to comment.