Publish to Forgejo Server.
Some checks failed
ci/woodpecker/push/package-deploy Pipeline was successful
ci/woodpecker/tag/package-deploy Pipeline failed

This commit is contained in:
minecraftchest1@outlook.com 2025-01-14 10:27:42 -06:00
parent 8ae5270bb0
commit 89c0d634c2

View file

@ -9,7 +9,7 @@ steps:
- python3 -m pip install --upgrade build
- python3 -m build
- name: publish
- name: publish PyPi
when:
- event: tag
image: python:3-alpine
@ -18,4 +18,17 @@ steps:
- python3 -m twine upload --repository testpypi dist/*
environment:
TWINE_PASSWORD:
from_secret: pypi-token
from_secret: pypi-token
depends_on: build
- name: publish Forgejo
when:
- event: tag
image: python:3-alpine
commands:
- python3 -m pip install twine
- python3 -m twine upload --repository-url https://forgejo.example.com/api/packages/minecraftchest1/pypi dist/*
environment:
TWINE_PASSWORD:
from_secret: forgejo-token
depends_on: build