Publish to Forgejo Server.
This commit is contained in:
parent
8ae5270bb0
commit
89c0d634c2
1 changed files with 15 additions and 2 deletions
|
@ -9,7 +9,7 @@ steps:
|
||||||
- python3 -m pip install --upgrade build
|
- python3 -m pip install --upgrade build
|
||||||
- python3 -m build
|
- python3 -m build
|
||||||
|
|
||||||
- name: publish
|
- name: publish PyPi
|
||||||
when:
|
when:
|
||||||
- event: tag
|
- event: tag
|
||||||
image: python:3-alpine
|
image: python:3-alpine
|
||||||
|
@ -18,4 +18,17 @@ steps:
|
||||||
- python3 -m twine upload --repository testpypi dist/*
|
- python3 -m twine upload --repository testpypi dist/*
|
||||||
environment:
|
environment:
|
||||||
TWINE_PASSWORD:
|
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
|
Loading…
Add table
Reference in a new issue