Skip to content
Snippets Groups Projects
Commit 9d485d85 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

only publish if push worked

parent bf6f06c9
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,6 @@ Publish to pypi and update repository:
- git config --global user.name ${GITLAB_USER_NAME}
- git add pyproject.toml
- git commit -m "Bump version"
- git remote add origin https://${ACCESS_TOKEN_NAME}:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git && git push -o ci.skip origin HEAD:master
- poetry publish --build --username ${PYPI_USER} --password ${PYPI_PASSWORD}
- git remote add local https://${ACCESS_TOKEN_NAME}:${ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git && git push -o ci.skip local HEAD:master && poetry publish --build --username ${PYPI_USER} --password ${PYPI_PASSWORD}
only:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment