arch: null artifacts: - ./docs.tar.gz - ./package.tar.gz - ./package.whl environment: BUILD_SUBMITTER: git.sr.ht image: alpine/3.17 packages: - poetry repositories: {} secrets: - 3ecea679-dec7-4ac0-8821-75d0f4fe0773 - dc710d9d-8043-4e1d-9837-b35bfa02800a shell: false sources: - https://git.sr.ht/~nicoco/skidge#6b6259e72816dcf8d488d0765fcab5d9659bb035 tasks: - install: | cd skidge poetry install poetry run c3p0 skidge poetry run set_version poetry build cp dist/*.tar.gz ~/package.tar.gz cp dist/*.whl ~/package.whl - tests: | cd skidge poetry run ruff . poetry run mypy . poetry run pytest tests poetry run black --check . poetry run isort --check . - docs: | cd skidge/docs make html cd build/html tar cvzf ~/docs.tar.gz . - publish: | if [ -z "$PYPI" ]; then exit fi set +x export POETRY_PYPI_TOKEN_PYPI=$(cat ~/.pypi-token) set -x cd $PROJECT poetry publish triggers: [] oauth: ""