2025-01-13 13:31:29 -06:00
|
|
|
when:
|
2025-01-13 14:44:07 -06:00
|
|
|
- event: [ push, tag ]
|
2025-01-13 13:31:29 -06:00
|
|
|
branch: main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
|
|
|
image: python:3-alpine
|
|
|
|
commands:
|
|
|
|
- python3 -m pip install --upgrade build
|
2025-01-13 13:36:56 -06:00
|
|
|
- python3 -m build
|
2025-01-13 13:31:29 -06:00
|
|
|
|
2025-01-14 10:27:42 -06:00
|
|
|
- name: publish PyPi
|
2025-01-13 13:36:56 -06:00
|
|
|
when:
|
|
|
|
- event: tag
|
2025-01-13 16:13:11 -06:00
|
|
|
image: python:3-alpine
|
|
|
|
commands:
|
|
|
|
- python3 -m pip install twine
|
2025-01-15 08:54:52 -06:00
|
|
|
- python3 -m twine upload --repository pypi dist/*
|
2025-01-13 16:13:11 -06:00
|
|
|
environment:
|
2025-01-13 16:18:01 -06:00
|
|
|
TWINE_PASSWORD:
|
2025-01-14 10:27:42 -06:00
|
|
|
from_secret: pypi-token
|
|
|
|
depends_on: build
|
|
|
|
|
|
|
|
- name: publish Forgejo
|
|
|
|
when:
|
|
|
|
- event: tag
|
|
|
|
image: python:3-alpine
|
|
|
|
commands:
|
|
|
|
- python3 -m pip install twine
|
2025-01-15 08:50:08 -06:00
|
|
|
- python3 -m twine upload --repository-url https://code.minecraftchest1.us/api/packages/minecraftchest1/pypi dist/*
|
2025-01-14 10:27:42 -06:00
|
|
|
environment:
|
2025-01-14 10:39:19 -06:00
|
|
|
TWINE_USERNAME: minecraftchest1
|
2025-01-14 10:27:42 -06:00
|
|
|
TWINE_PASSWORD:
|
|
|
|
from_secret: forgejo-token
|
|
|
|
depends_on: build
|