dnscode/.woodpecker/package-deploy.yaml
minecraftchest1@outlook.com 2561651eb5 Manual publishing.
The twine plugin does not work due to the image not having been built recently enough.
2025-01-13 16:13:11 -06:00

21 lines
No EOL
436 B
YAML

when:
- event: [ push, tag ]
branch: main
steps:
- name: build
image: python:3-alpine
commands:
- python3 -m pip install --upgrade build
- python3 -m build
- name: publish
when:
- event: tag
image: python:3-alpine
commands:
- python3 -m pip install twine
- python3 -m twine upload --repository testpypi dist/*
environment:
- TWINE_PASSWORD:
from_secret: pypi-token