mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
[#715] Make bot that will auto-increment version in code after deploy
This commit is contained in:
parent
c863659916
commit
851a367569
1 changed files with 9 additions and 1 deletions
10
.travis.yml
10
.travis.yml
|
@ -1,6 +1,8 @@
|
||||||
dist: xenial # required for Python >= 3.7
|
dist: xenial # required for Python >= 3.7
|
||||||
language: python
|
language: python
|
||||||
python: "3.7"
|
python: "3.7"
|
||||||
|
git:
|
||||||
|
depth: false
|
||||||
before_install:
|
before_install:
|
||||||
- pip install poetry
|
- pip install poetry
|
||||||
install:
|
install:
|
||||||
|
@ -11,7 +13,6 @@ 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
|
||||||
|
@ -22,3 +23,10 @@ deploy:
|
||||||
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 checkout master
|
||||||
|
- git add pyproject.toml
|
||||||
|
- git commit -m "Incrementing version to ${TRAVIS_TAG}"
|
||||||
|
- git push https://${GITHUB_TOKEN}@github.com/jrnl-org/jrnl.git master
|
||||||
|
|
Loading…
Add table
Reference in a new issue