fix CI deployment 10

This commit is contained in:
Yeicor
2024-03-10 18:26:13 +01:00
parent 9f30ac8eb7
commit cbdb5aff5e
2 changed files with 8 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ jobs:
if git commit -am "Automatically update version to $CLEAN_VERSION"; then
git push
# Move the tag to the new commit
git tag -f -a "$CLEAN_VERSION" -m "$CLEAN_VERSION"
git tag -f -a "v$CLEAN_VERSION" -m "v$CLEAN_VERSION"
git push -f --tags # Force push the tag to GitHub
# The tag move will NOT trigger a new workflow
else

View File

@@ -74,7 +74,11 @@ jobs:
- uses: "actions/setup-node@v4"
with:
cache: "yarn"
- uses: "JRubics/poetry-publish@v2.0"
- run: "pipx install poetry"
- uses: "actions/setup-python@v5"
with:
python_version: "3.11"
pypi_token: "${{ secrets.PYPI_TOKEN }}"
python-version: "3.11"
cache: "poetry"
- run: "poetry install"
- run: "poetry publish --build"