-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rultor.yml
30 lines (30 loc) · 920 Bytes
/
.rultor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
architect:
- h1alexbel
assets:
pypi.txt: h1alexbel/home#assets/pypi.txt
install: |
python3 -m pip install --upgrade pip
pip install twine
# @todo #1:30min Create merge script for rultor.
# We should create merge script for rultor to invoke it on a pull requests.
# Let's take .github/workflows/py.yml as a basis and do something similar.
# See also https://github.com/h1alexbel/samples-filter/issues/13.
merge:
script: |
<merge script>
python3 setup.py sdist bdist_wheel
release:
sensitive:
- pypi.txt
script: |
[[ "${tag}" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z0-9_]+)?$ ]] || exit -1
sed -i "s/0\.0\.0/${tag}/g" version.txt
git commit -am "${tag}"
export TWINE_USERNAME=h1alexbel
export TWINE_PASSWORD=$(cat ../pypi.txt)
python3 setup.py sdist bdist_wheel
python3 -m twine upload dist/*
deploy:
script: |
echo "There is no such thing as #deploy"
exit -1