Commit 9f5faceb authored by Naveen's avatar Naveen 👽 Committed by Naveen

.ci/push_tags.sh: Automate git tag push

Resolves #107
parent f0e2e378
Pipeline #38654302 passed with stage
#!/usr/bin/env sh
set -x -e -o pipefail
git config user.name IGitt-bot
git config user.email support@gitmate.io
git tag -a $(cat IGitt/VERSION) -m $(cat IGitt/VERSION)
git push --tags --quiet https://oauth2:${RELEASE_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git
......@@ -6,6 +6,11 @@ before_script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
.script: &script |
python .ci/adjust_version.py IGitt/VERSION -b `date --utc +%Y%m%d%H%M%S`
python setup.py sdist bdist_wheel
twine upload dist/* -u "$PYPIUSER" -p "$PYPIPW"
run_tests:
script:
- python3 -m pytest
......@@ -25,14 +30,20 @@ cache:
paths:
- /root/.cache/pip
release:
release_master: &release_master
# twine 1.12 indirectly depends on cmarkgfm to render README,
# which requires a compiler
before_script:
- pip install 'twine<1.12'
- pip install 'twine<1.2'
script:
- python .ci/adjust_version.py IGitt/VERSION -b `date --utc +%Y%m%d%H%M%S`
- python setup.py sdist bdist_wheel
- twine upload dist/* -u "$PYPIUSER" -p "$PYPIPW"
- *script
only:
- master@gitmate/open-source/IGitt
release:
<<: *release_master
script:
- *script
- ./.ci/push_tags.sh
only:
- /^release\/.*$/@gitmate/open-source/IGitt
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment