ci: now also upload to package on forgejo.
This commit is contained in:
parent
03cf68b873
commit
364af1cb6e
1 changed files with 25 additions and 1 deletions
|
@ -61,7 +61,7 @@ steps:
|
||||||
- python3 -m pip install build
|
- python3 -m pip install build
|
||||||
- python3 -m build
|
- python3 -m build
|
||||||
|
|
||||||
- name: release
|
- name: publish_pypi
|
||||||
depends_on: [gitversion, tagging, build]
|
depends_on: [gitversion, tagging, build]
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
@ -75,3 +75,27 @@ steps:
|
||||||
- ls
|
- ls
|
||||||
- python3 -m pip install twine
|
- python3 -m pip install twine
|
||||||
- python3 -m twine upload dist/*
|
- python3 -m twine upload dist/*
|
||||||
|
|
||||||
|
- name: publish_forgejo
|
||||||
|
depends_on: [gitversion, tagging, build]
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
branch: main
|
||||||
|
image: python:3.9.21
|
||||||
|
environment:
|
||||||
|
CI_TOKEN:
|
||||||
|
from_secret: CI_TOKEN
|
||||||
|
commands:
|
||||||
|
- ls
|
||||||
|
- python3 -m pip install twine
|
||||||
|
- |
|
||||||
|
cat > ~/.pypirc <<EOF
|
||||||
|
[distutils]
|
||||||
|
index-servers = forgejo
|
||||||
|
|
||||||
|
[forgejo]
|
||||||
|
repository = https://code.boxyfoxy.net/api/packages/CodeByMrFinchum/pypi
|
||||||
|
username = CodeByMrFinchum
|
||||||
|
password = ${CI_TOKEN}
|
||||||
|
EOF
|
||||||
|
- python3 -m twine upload --repository forgejo dist/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue