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 PyPi when: - event: tag image: python:3-alpine commands: - python3 -m pip install twine - python3 -m twine upload --repository pypi dist/* environment: TWINE_PASSWORD: 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://code.minecraftchest1.us/api/packages/minecraftchest1/pypi dist/* environment: TWINE_USERNAME: minecraftchest1 TWINE_PASSWORD: from_secret: forgejo-token depends_on: build