Migrate account invoice DO to Tryton 8.0
Publish Package / publish (push) Successful in 1m57s

This commit is contained in:
José Arturo García
2026-08-14 20:54:23 -04:00
parent 4e70fd9733
commit e2340bd5bf
20 changed files with 420 additions and 514 deletions
+15 -6
View File
@@ -3,16 +3,24 @@ name: Publish Package
on:
push:
branches:
- "**"
- "8.0"
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: https://gitea.com/actions/checkout@v4
with:
token: ${{ secrets.GITEA_TOKEN }}
github-server-url: "http://unpaismejor-gitea-app:3000"
ref: "8.0"
fetch-depth: 0
- name: Detect package branch
run: |
@@ -21,7 +29,9 @@ jobs:
import re
branch = (
os.environ.get('GITHUB_REF_NAME')
os.environ.get('GITEA_REF_NAME')
or os.environ.get('GITEA_HEAD_REF')
or os.environ.get('GITHUB_REF_NAME')
or os.environ.get('GITHUB_HEAD_REF')
or '')
publish = bool(re.fullmatch(r'\d+\.\d+', branch))
@@ -75,7 +85,7 @@ jobs:
OWNER = 'tryton-do'
PACKAGE_TYPE = 'pypi'
API_ROOT = 'https://gitea.joseagrc.com/api/v1'
API_ROOT = 'https://code.unpaismejor.org.do/api/v1'
def normalize(name):
return re.sub(r'[-_.]+', '-', name).lower()
@@ -85,7 +95,6 @@ jobs:
cfg_match = re.search(r'(?m)^version=(.+)$', cfg_text)
if not cfg_match:
raise SystemExit('tryton.cfg has no version entry')
series = os.environ['PACKAGE_SERIES']
major, minor = map(int, series.split('.'))
@@ -188,5 +197,5 @@ jobs:
TWINE_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
python -m twine upload \
--repository-url https://gitea.joseagrc.com/api/packages/tryton-do/pypi \
--repository-url https://code.unpaismejor.org.do/api/packages/tryton-do/pypi \
dist/*