Files
sublime-music/.builds/pypi.yml
Sumner Evans 37d693d553 Add deps
2020-09-19 01:22:47 -06:00

30 lines
718 B
YAML

image: alpine/edge
packages:
- py3-pip
- py3-setuptools
- py3-twine
sources:
- https://git.sr.ht/~sumner/sublime-music
environment:
REPO_NAME: sublime-music
# triggers:
# - action: email
# condition: failure
# to: ~sumner/sublime-music-devel@lists.sr.ht
tasks:
- setup: |
cd ${REPO_NAME}
echo "cd ${REPO_NAME}" >> ~/.buildenv
- build: |
python3 setup.py sdist
- deploy-pypi: |
./cicd/run_if_tagged_with_version \
"twine upload -r testpypi dist/*" \
"twine upload dist/*"
- verify-pypi: |
./cicd/run_if_tagged_with_version \
"pip install ${REPO_NAME}"