mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-12 01:18:31 +02:00
[#715] Test for automatically incrementing version in pipeline
This commit is contained in:
parent
b80a5d301c
commit
85c9513f60
1 changed files with 7 additions and 2 deletions
|
@ -11,14 +11,19 @@ script:
|
||||||
- poetry run python --version
|
- poetry run python --version
|
||||||
- poetry run behave
|
- poetry run behave
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- pip install poetry
|
|
||||||
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
|
- poetry config http-basic.pypi $PYPI_USER $PYPI_PASS
|
||||||
- poetry version $TRAVIS_TAG
|
- poetry version $TRAVIS_TAG
|
||||||
- poetry build
|
- poetry build
|
||||||
deploy:
|
deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
script: poetry publish
|
script: echo "fake deploy"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
tags: true
|
tags: true
|
||||||
|
after_deploy:
|
||||||
|
- git config --global user.email "jrnl.bot@gmail.com"
|
||||||
|
- git config --global user.name "Jrnl Bot"
|
||||||
|
- git add pyproject.toml
|
||||||
|
- git commit -m "Incrementing version to ${TRAVIS_TAG}"
|
||||||
|
- git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl master
|
||||||
|
|
Loading…
Add table
Reference in a new issue