More updates to Publish Toolkit Workflow (#305)
This commit is contained in:
parent
29e895ca44
commit
53a12802f6
2 changed files with 10 additions and 6 deletions
14
.github/workflows/publish-toolkit.yml
vendored
14
.github/workflows/publish-toolkit.yml
vendored
|
|
@ -59,11 +59,15 @@ jobs:
|
||||||
VERSION=$(poetry version -s)
|
VERSION=$(poetry version -s)
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
|
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }}
|
||||||
# Attempt to publish the toolkit to PyPI.
|
|
||||||
# If the toolkit version already exists, skip publishing.
|
# Run the publish command in an if-statement to capture output and status.
|
||||||
# If another error occurs, exit with the error code so that the step fails.
|
if PUBLISH_OUTPUT=$(poetry publish --skip-existing 2>&1); then
|
||||||
PUBLISH_OUTPUT=$(poetry publish --skip-existing 2>&1 || true)
|
PUBLISH_STATUS=0
|
||||||
PUBLISH_STATUS=$?
|
else
|
||||||
|
PUBLISH_STATUS=$?
|
||||||
|
fi
|
||||||
|
|
||||||
|
# If the output indicates that the version already exists, mark it as a skip.
|
||||||
if echo "$PUBLISH_OUTPUT" | grep -q "File exists. Skipping"; then
|
if echo "$PUBLISH_OUTPUT" | grep -q "File exists. Skipping"; then
|
||||||
echo "Version already exists on PyPI. Skipping publish."
|
echo "Version already exists on PyPI. Skipping publish."
|
||||||
echo "skip_publish=true" >> $GITHUB_OUTPUT
|
echo "skip_publish=true" >> $GITHUB_OUTPUT
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "arcade_notion"
|
name = "arcade_notion"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
description = "LLM tools for essential Notion interactions such as creating, updating, retrieving, and searching pages."
|
description = "LLM tools for essential Notion interactions such as creating, updating, retrieving, and searching pages."
|
||||||
authors = ["ArcadeAI <dev@arcade.dev>"]
|
authors = ["ArcadeAI <dev@arcade.dev>"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue