mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
fix conditional for deploy step
This commit is contained in:
parent
bfa0cae289
commit
f92c789efe
1 changed files with 4 additions and 1 deletions
|
@ -115,7 +115,6 @@ jobs:
|
||||||
- TZ=America/Edmonton
|
- TZ=America/Edmonton
|
||||||
|
|
||||||
- stage: Deploy
|
- stage: Deploy
|
||||||
if: branch = master AND tag IS present
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- poetry config pypi-token.pypi "$PYPI_TOKEN"
|
- poetry config pypi-token.pypi "$PYPI_TOKEN"
|
||||||
- poetry version "$TRAVIS_TAG"
|
- poetry version "$TRAVIS_TAG"
|
||||||
|
@ -124,6 +123,10 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
script: poetry publish
|
script: poetry publish
|
||||||
|
skip_cleanup: true
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
tags: true
|
||||||
after_deploy:
|
after_deploy:
|
||||||
- git config --global user.email "jrnl.bot@gmail.com"
|
- git config --global user.email "jrnl.bot@gmail.com"
|
||||||
- git config --global user.name "Jrnl Bot"
|
- git config --global user.name "Jrnl Bot"
|
||||||
|
|
Loading…
Add table
Reference in a new issue